THotPDF.GetLoadedFontDict Method

Returns the complete font dictionary object of a specific font resource in the specified page of the loaded PDF, used for accessing low-level properties such as font descriptors, width tables, and encoding mappings

Declaration

function GetLoadedFontDict(PageIndex, FontIndex: Integer): THPDFDictionaryObject;

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

Return value

返回字体字典的 THPDFDictionaryObject;索引越界或字体无法解析时返回 nil

Usage notes

Related APIs