cpdf-source/docsplits/splits/c18.tex

48 lines
1.8 KiB
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. */
2024-04-16 03:44:25 +02:00
int cpdf_textToPDF(double, double, const char[], double, const char[]);
2021-06-18 15:19:43 +02:00
2024-04-16 03:44:25 +02:00
/* cpdf_textToPDFMemory(w, h, font, fontsize, data, length) 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_textToPDFMemory(double, double, const char[], double, void *, int);
/* cpdf_textToPDF(papersize, font, fontsize, filename) typesets a UTF8 text file
2022-01-19 18:09:46 +01:00
* ragged right on a page of the given size in the given font and font size. */
2024-04-16 03:44:25 +02:00
int cpdf_textToPDFPaper(int, const char[], double, const char[]);
2021-06-18 15:19:43 +02:00
2024-04-16 03:44:25 +02:00
/* cpdf_textToPDFMemory(papersize font, fontsize, data, length) typesets a UTF8
* text file ragged right on a page of the given size in the given font and
* font size. */
int cpdf_textToPDFPaperMemory(int, const char[], double, void *, int);
/* cpdf_fromPNG(filename) builds a PDF from a non-interlaced non-transparent
* PNG. */
2024-03-22 19:56:54 +01:00
int cpdf_fromPNG(const char[]);
2024-04-16 03:44:25 +02:00
/* cpdf_fromPNGMemory(data, length) builds a PDF from a non-interlaced
* non-transparent PNG. */
int cpdf_fromPNGMemory(void *, int);
/* cpdf_fromJPEG(filename) builds a PDF from a JPEG. */
2024-03-22 19:56:54 +01:00
int cpdf_fromJPEG(const char[]);
2024-04-16 03:44:25 +02:00
/* cpdf_fromJPEGMemory(data, length) builds a PDF from a JPEG. */
int cpdf_fromJPEGMemory(void *, int);