cpdf-source/docsplits/splits/c15.tex

32 lines
1.1 KiB
TeX
Raw Permalink Normal View History

2021-06-18 15:19:43 +02:00
/* CHAPTER 14. Fonts. */
/*
* Retrieving font information. First, call cpdf_startGetFontInfo(pdf). Now
* call cpdf_numberFonts to return the number of fonts. For each font, call
* one or more of cpdf_getFontPage, cpdf_getFontName, cpdf_getFontType, and
* cpdf_getFontEncoding giving a serial number 0..<number of fonts> - 1 to
* return information. Finally, call cpdf_endGetFontInfo to clean up.
*/
void cpdf_startGetFontInfo(int);
int cpdf_numberFonts(void);
int cpdf_getFontPage(int);
char *cpdf_getFontName(int);
char *cpdf_getFontType(int);
char *cpdf_getFontEncoding(int);
void cpdf_endGetFontInfo(void);
2024-04-16 03:44:25 +02:00
/* cpdf_fontsJSON(pdf, size) returns JSON data for the font list, and fills
2024-03-22 19:56:54 +01:00
* in the return length. */
void *cpdf_fontsJSON(int, int *);
2021-06-18 15:19:43 +02:00
/* cpdf_removeFonts(pdf) removes all font data from a file. */
void cpdf_removeFonts(int);
/*
* cpdf_copyFont(from, to, range, pagenumber, fontname) copies the given font
* from the given page in the 'from' PDF to every page in the 'to' PDF. The
2022-01-19 18:09:46 +01:00
* new font is stored under its font name.
2021-06-18 15:19:43 +02:00
*/
void cpdf_copyFont(int, int, int, int, const char[]);