cpdf-source/javascriptsplits/c18.tex

17 lines
636 B
TeX
Raw Normal View History

2022-05-18 18:47:31 +02:00
// CHAPTER 17. Creating new PDFs
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Creates a blank document with pages of the given width (in points), height
(in points), and number of pages. */
function blankDocument(w, h, pages)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Makes a blank document given a page size and number of pages. */
function blankDocumentPaper(papersize, pages)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +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. */
function textToPDF(w, h, font, fontsize, filename)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** 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)