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
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
Returns an Integer value
Usage notes
- This count sums up page-level font references, so a font referenced on several pages is counted several times; for a unique count, aggregate each page's GetLoadedFontNames results
- This value and GetLoadedFontNames complement each other when building a document-level font inventory
- Only call after a document has been loaded successfully; returns 0 when no document is loaded