THotPDF.AnalyzeLoadedReadingOrder Method
Compares the MCID sequence in the loaded structure tree with tagged text sorted from top to bottom and left to right
Declaration
function AnalyzeLoadedReadingOrder(PageIndex: Integer;
out Diagnostics: THPDFReadingOrderDiagnosticArray;
RankTolerance: Integer = 0): Boolean;
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based loaded page index |
Diagnostics | Missing tags, missing content, duplicate MCIDs, and rank mismatches |
RankTolerance | Allowed difference between structure and geometric rank |
Return value
Returns True when the page and structure tree were analysed, even when diagnostics report mismatches
Usage notes
- Only text associated with an active MCID contributes geometric order
- Nested structure elements inherit page and role context
- Numeric
/Kentries and marked-content reference dictionaries are supported