THotPDF.GetLoadedFontInfo Method

Reads the name and encoding information of a specific font resource on a specified page of the loaded PDF, used for checking page font usage or making font replacement decisions

Declaration

function GetLoadedFontInfo(PageIndex, FontIndex: Integer; out AFontName, AEncoding: AnsiString): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page
FontIndexThe zero-based index of the target font in the page's font resource dictionary
AFontNameOut parameter receiving the font's BaseFont name (e.g. ABCDEE+Arial)

Return value

Returns True if the font information was read successfully

Usage notes

Related APIs