DAGetTextBlockCharOrigin
Direct access, Text, Geometry
Description
Returns the baseline origin of one direct-access character in raw page coordinates
Syntax
Delphi
Function TPDFlib.DAGetTextBlockCharOrigin(TextBlockListID, Index, CharIndex: Integer; Out X, Y: Double): Integer;Parameters
| TextBlockListID | Handle returned by DAExtractPageTextBlocks |
|---|---|
| Index | 1-based text block index |
| CharIndex | 1-based UTF-16 code-unit position inside the block text |
| X | Receives the baseline origin X coordinate in raw page coordinates; zero on failure |
| Y | Receives the baseline origin Y coordinate in raw page coordinates; zero on failure |
Return values
1 on success, or 0 with zero outputs for an invalid handle or index
Remarks
The handle must come from DAExtractPageTextBlocks