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
| TextBlockListID | A value returned by the ExtractPageTextBlocks function. |
|---|---|
| Index | The 1-based index of the text block in the list. |
Return values
| 0 | Baseline text (or an invalid handle/index) |
|---|---|
| 1 | Superscript |
| 2 | Subscript |