THotPDF.AnalyzeLoadedPageSemanticText
Analyses positioned glyphs and returns semantic lines in stable reading order
Delphi syntax
function AnalyzeLoadedPageSemanticText(PageIndex: Integer; out ALayout: THPDFSemanticTextLayout): boolean;
Description
The analyser clusters baselines, splits large horizontal gaps into cells, detects recurring column bands, recognises aligned table rows and classifies list items, headings and figure or table captions. Full-width content and table rows divide the page into vertical zones, whilst ordinary content is ordered column-first and then top-to-bottom inside each column
THPDFSemanticTextLayout reports ColumnCount, TableCount, page medians and ordered Lines. Every line retains bounds, cells, role, column and zone, table and row indices, list level and original source order so applications can replace the built-in heuristics
The geometry pass uses O(n log n) sorting and bounded column-band assignment
See also ExtractLoadedPageSemanticText