THotPDF.ExtractLoadedPageTextLayout

THotPDF

 

Top  Previous  Next

Extracts text layout information from a loaded page.

 

Delphi syntax:

function ExtractLoadedPageTextLayout( PageIndex: Integer; out AText: UnicodeString ): boolean;

 

Description

Extracts the page text with its visual layout: baselines become lines, sorted from the top, and words are placed on a character grid estimated from the median glyph advance, so indentation, columns and tables keep their positions with plain spaces and blank lines. The glyphs of one word stay together whatever their widths. 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