THotPDF.GetLoadedFontNames Method

Gets the list of font names used on the specified page of the loaded PDF document

Declaration

function GetLoadedFontNames(PageIndex: Integer): THPDFAnsiStringArray;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based page index, specifying the target page to query the font name

Return value

返回 THPDFAnsiStringArray 类型的字符串数组,每个元素为该页面资源字典中引用的字体名称;若该页无字体资源则返回空数组

Usage notes

Related APIs