cpdf-source/javascriptsplits/c15.tex

22 lines
791 B
TeX

// 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()
/** Removes all font data from a file. */
function removeFonts(pdf)
/** 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)