DAGetTextBlockCharLooseBox
Direct access, Text, Geometry
Description
Returns the minimum and maximum raw page coordinates across a direct-access character quad
Syntax
Delphi
Function TPDFlib.DAGetTextBlockCharLooseBox(TextBlockListID, Index, CharIndex: Integer; Out MinX, MinY, MaxX, MaxY: 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 |
| MinX | Receives the minimum X coordinate of the rotated or sheared cell; zero on failure |
| MinY | Receives the minimum Y coordinate of the rotated or sheared cell; zero on failure |
| MaxX | Receives the maximum X coordinate of the rotated or sheared cell; zero on failure |
| MaxY | Receives the maximum Y coordinate of the rotated or sheared cell; 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 and no selected-document coordinate conversion is applied