THotPDF.ExtractLoadedPageGlyphs Method

 

THotPDF.ExtractLoadedPageGlyphs

THotPDF

 

Top

Extracts glyph records from a loaded page, interpreting the page content stream. Returns True if successful.

 

Delphi syntax:

function ExtractLoadedPageGlyphs(PageIndex: Integer; out AGlyphs: THPDFGlyphArray): boolean;

 

Description

Extracts glyph records from a loaded page, interpreting the page content stream. Returns True if successful.THPDFGlyphRecord preserves the complete UnicodeSequence produced by /ToUnicode, while Unicode remains the first scalar for compatibility. ClusterStart, ClusterLength, and IsLigature identify logical-character membership. QuadX, QuadY, and the baseline endpoints are transformed through the text matrix and graphics CTM. GeometryExact is true when both the glyph width and font descriptor ascent and descent are available

Use ExtractLoadedPageCharacters when one result record per logical Unicode scalar is required

The glyphs come from the page's own content stream, so their source locations always point into it; text that the page paints through Form XObjects is not included, whilst ExtractLoadedPageText includes it