cpdf-source/docsplits/pysplits/c18.tex

36 lines
1.3 KiB
TeX
Raw Normal View History

2022-01-23 14:14:24 +01:00
def blankDocument(w, h, pages):
2024-04-17 02:14:40 +02:00
"""Create a blank document with pages of the given width (in points),
height (in points), and number of pages."""
2022-01-23 14:14:24 +01:00
def blankDocumentPaper(papersize, pages):
"""Create a blank document with pages of the given paper size, and number
2024-04-17 02:14:40 +02:00
of pages."""
2022-01-23 14:14:24 +01:00
def textToPDF(w, h, font, fontsize, filename):
2024-04-17 02:14:40 +02:00
"""Typesets a UTF8 text file ragged right on a page of size w * h in points
in the given font and font size."""
def textToPDFMemory(w, h, font, fontsize, data):
"""Typesets a UTF8 text file ragged right on a page of size w * h in points
in the given font and font size."""
2022-01-23 14:14:24 +01:00
def textToPDFPaper(papersize, font, fontsize, filename):
2024-04-17 02:14:40 +02:00
"""Typesets a UTF8 text file ragged right on a page of the given size in
the given font and font size."""
def textToPDFPaperMemory(papersize, font, fontsize, data):
"""Typesets a UTF8 text file ragged right on a page of the given size in
the given font and font size."""
def fromPNG(filename):
"""Builds a PDF from a non-interlaced non-transparent PNG file."""
def fromPNGMemory(data):
"""Builds a PDF from a non-interlaced non-transparent PNG file bytearray."""
def fromJPEG(filename):
"""Builds a PDF from a JPEG file."""
def fromJPEGMemory(data):
"""Builds a PDF from a JPEG file bytearray."""