cpdf-source/javascriptsplits/c15.tex

22 lines
791 B
TeX
Raw Normal View History

2022-05-18 18:47:31 +02:00
// CHAPTER 14. Fonts.
/** Retrieves font information. First, call startGetFontInfo(pdf). Now call
numberFonts to return the number of fonts. For each font, call one or more of
getFontPage, getFontName, getFontType, and getFontEncoding giving a serial
number 0..n - 1 to return information. Finally, call endGetFontInfo to clean
up. */
function startGetFontInfo(pdf)
function numberFonts()
function getFontPage(n)
function getFontName(n)
function getFontType(n)
function getFontEncoding(n)
function endGetFontInfo()
2022-05-12 17:57:13 +02:00
/** Removes all font data from a file. */
2022-05-18 18:47:31 +02:00
function removeFonts(pdf)
2022-05-12 17:57:13 +02:00
2022-05-18 18:47:31 +02:00
/** Copies the given font from the given page in the 'from' PDF to every page
in the 'to' PDF. The new font is stored under its font name. */
function copyFont(docfrom, docto, range, pagenumber, fontname)