THotPDF.ExtractLoadedPageGlyphsWithForms Method
Private helper of THotPDF that sits behind the page text methods: it returns the glyphs of a loaded page together with those of the Form XObjects the page paints, in painting order
Declaration
function ExtractLoadedPageGlyphsWithForms(PageIndex: Integer; out Glyphs: THPDFGlyphArray): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the loaded page |
Glyphs | Receives the glyphs in user space; glyphs coming from forms carry a TokenIndex and ItemIndex of -1 |
Return value
True when the page content could be read and interpreted
Usage notes
- Each Form XObject is read once along a chain of nested forms: a form that paints itself, whether directly or through other forms, is not entered a second time
- Glyphs of a form whose centre falls outside the form's /BBox, its clipping boundary (ISO 32000-1 8.10.1), are left out
- ExtractLoadedPageText and the other text methods work from these glyphs once those outside the visible page box have been discarded