THotPDF.GetLoadedFontCount Method

Returns the total number of font resources referenced by the specified page in the loaded PDF document, used to determine the valid index range before enumerating fonts

Declaration

function GetLoadedFontCount(PageIndex: Integer): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page; returns 0 if out of the valid range

Return value

Returns the total number of entries in the specified page's font resource dictionary; returns 0 if the page has no font references or the index is invalid

Usage notes

Related APIs