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
| Name | Purpose |
|---|---|
PageIndex | Zero-based page index, specifying the target page to query the font name |
Return value
Returns an array of the font resource names used by the page
Usage notes
- The returned font names are PDF-internal resource names and may differ from operating-system font names; subset-embedded fonts carry a prefix tag
- To count the fonts across the whole document, use GetLoadedTotalFontCount
- The same font may appear repeatedly on multiple pages; the results must be deduplicated to obtain a document-level unique font list