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

NamePurpose
PageIndexZero-based loaded page index
DiagnosticsMissing tags, missing content, duplicate MCIDs, and rank mismatches
RankToleranceAllowed 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

Related APIs