cpdf-source/javascriptsplits/c18.tex

17 lines
636 B
TeX

// CHAPTER 17. Creating new PDFs
/** Creates a blank document with pages of the given width (in points), height
(in points), and number of pages. */
function blankDocument(w, h, pages)
/** Makes a blank document given a page size and number of pages. */
function blankDocumentPaper(papersize, pages)
/** Typesets a UTF8 text file ragged right on a page of size w * h in points
in the given font and font size. */
function textToPDF(w, h, font, fontsize, filename)
/** Typesets a UTF8 text file ragged right on a page of the given size in the
given font and font size. */
function textToPDFPaper(papersize, font, fontsize, filename)