GetTextBlockVAlign

Text Extraction

Description

Reports the baseline classification of a text block relative to its visual line: blocks markedly smaller than the line's dominant text whose vertical centre sits above the main centre classify as superscript, below as subscript. Chemical formulas, footnote markers and exponents can so be recognised during extraction.

The classification is computed when the block list is built by ExtractPageTextBlocks; use GetTextBlockText and the other block accessors with the same list handle.

Syntax

Delphi

Function TPDFlib.GetTextBlockVAlign(TextBlockListID, Index: Integer): Integer;

Parameters

TextBlockListIDA value returned by the ExtractPageTextBlocks function.
IndexThe 1-based index of the text block in the list.

Return values

0Baseline text (or an invalid handle/index)
1Superscript
2Subscript