cpdf-source/html_manual/splits/c15.tex

28 lines
969 B
TeX
Raw Normal View History

2021-07-06 15:34:03 +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);
/* 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-26 13:41:19 +01:00
* new font is stored under its font name.
2021-07-06 15:34:03 +02:00
*/
void cpdf_copyFont(int, int, int, int, const char[]);