THotPDF.GetLoadedTotalFontCount Method
Returns the total number of font resource references across all pages within the loaded PDF document
Declaration
function GetLoadedTotalFontCount: Integer;
Unit
HPDFDoc
Return value
返回文档全部页面字体资源引用的累计总数;若文档无字体资源则返回 0
Usage notes
- 此计数是页面级字体引用的累加,同一字体在不同页面重复引用会被多次计入;若需唯一字体数量,请对各页
GetLoadedFontNames的返回值进行去重 - 该值与
GetLoadedSummary输出参数AFontCount的含义相同,可根据场景选用更方便的接口 - 仅在成功加载文档后调用;未加载文档时返回
0