cpdf-source/splits/c18.tex

24 lines
874 B
TeX
Raw Normal View History

2022-01-19 18:09:46 +01:00
/* CHAPTER 17. Creating New PDFs */
2021-06-18 15:19:43 +02:00
2022-01-19 18:09:46 +01:00
/* 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.
2021-06-18 15:19:43 +02:00
*/
2022-01-19 18:09:46 +01:00
int cpdf_blankDocument(double, double, int);
2021-06-18 15:19:43 +02:00
/*
2022-01-19 18:09:46 +01:00
* cpdf_blankDocumentPaper(papersize, num_pages) makes a blank document given
* a page size and number of pages.
2021-06-18 15:19:43 +02:00
*/
2022-01-19 18:09:46 +01:00
int cpdf_blankDocumentPaper(enum cpdf_papersize, int);
2021-06-18 15:19:43 +02:00
2022-01-19 18:09:46 +01:00
/* 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[]);
2021-06-18 15:19:43 +02:00
2022-01-19 18:09:46 +01:00
/* 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[]);
2021-06-18 15:19:43 +02:00