THotPDF.ExtractLoadedPageTextColumns

THotPDF

 

Top  Previous  Next

Extracts text layout structured as columns

 

Delphi syntax:

function ExtractLoadedPageTextColumns( PageIndex: Integer; out AText: UnicodeString; ColumnGapMultiplier: Double= 3.0): boolean;

 

Description

Extracts the page text row by row and separates the columns of each row with a tab, which keeps the reading order of multi-column text apart. A gap wider than ColumnGapMultiplier times the median glyph advance starts a new column, and a smaller gap after a glyph's own width, a word gap the document made by moving the text position, gives a space. Only the glyphs inside the visible box given by GetLoadedPageVisibleBox are taken, and distances are measured in page units, so text sized through the text matrix is handled like text sized through the font size

 

See also: THotPDF