cpdf-source/docsplits/splits/c18.tex

24 lines
874 B
TeX

/* CHAPTER 17. Creating New PDFs */
/* cpdf_blankDocument(width, height, num_pages) creates a blank document with
* pages of the given width (in points), height (in points), and number of
* pages.
*/
int cpdf_blankDocument(double, double, int);
/*
* cpdf_blankDocumentPaper(papersize, num_pages) makes a blank document given
* a page size and number of pages.
*/
int cpdf_blankDocumentPaper(enum cpdf_papersize, int);
/* cpdf_textToPDF(w, h, font, fontsize, filename) typesets a UTF8 text file
* ragged right on a page of size w * h in points in the given font and font
* size. */
int cpdf_textToPDF(double, double, int, double, const char[]);
/* cpdf_textToPDF(papersize font, fontsize, filename) typesets a UTF8 text file
* ragged right on a page of the given size in the given font and font size. */
int cpdf_textToPDFPaper(int, int, double, const char[]);