THotPDF.ExtractLoadedPageStructureText Method
Declaration
function ExtractLoadedPageStructureText(PageIndex: Integer;
out AText: UnicodeString; out UntaggedGlyphCount: Integer): boolean;
Behaviour
Structure-order text extraction: walks the document structure tree in authoring order, per ISO 32000-1 14.8.4, and concatenates the marked-content runs of the page by MCID, so tagged documents such as government forms and accessible publications extract in the authoritative reading order rather than the geometric guess
Returns false when the page has no usable structure tree; UntaggedGlyphCount reports glyphs without an MCID that the structure pass could not place
See also ExtractLoadedPageTextLayout, Automatic Layout Structure