GetTextBlockCharOrigin
Text, Extraction, Geometry
Description
Returns the baseline origin of one extracted character after applying the selected document origin and scale
Syntax
Delphi
Function TPDFlib.GetTextBlockCharOrigin(TextBlockListID, Index, CharIndex: Integer; Out X, Y: Double): Integer;Parameters
| TextBlockListID | Handle returned by ExtractPageTextBlocks |
|---|---|
| Index | 1-based text block index |
| CharIndex | 1-based character position |
| X, Y | Receive the transformed baseline origin |
Return value
1 on success, or 0 with zero outputs for an invalid handle or index
Remarks
The next character origin normally equals the current origin plus the baseline advance returned in M11 and M12 by GetTextBlockCharMatrix