GetTextBlockCharBox
Text, Extraction, Geometry
Description
Returns an axis-aligned character-cell box in selected-document coordinates
Syntax
Delphi
Function TPDFlib.GetTextBlockCharBox(TextBlockListID, Index, CharIndex: Integer; Out Left, Top, Right, Bottom: Double): Integer;Parameters
| TextBlockListID | Handle returned by ExtractPageTextBlocks |
|---|---|
| Index | One-based text block index within that list |
| CharIndex | One-based character index within the block's extracted text |
| Left, Top | Minimum numeric coordinates of the axis-aligned cell box |
| Right, Bottom | Maximum numeric coordinates of the axis-aligned cell box |
Return values
1 on success, or 0 with zero outputs for an invalid handle or index
Remarks
The result is derived directly from retained character geometry and remains constant-time for late characters in long runs