DAGetTextBlockCharAngle
Direct access, Text, Geometry
Description
Returns a direct-access character baseline angle in raw page coordinates
Syntax
Delphi
Function TPDFlib.DAGetTextBlockCharAngle(TextBlockListID, Index, CharIndex: Integer): Double;Parameters
| TextBlockListID | Handle returned by DAExtractPageTextBlocks |
|---|---|
| Index | 1-based text block index |
| CharIndex | 1-based UTF-16 code-unit position inside the block text |
Return values
An angle from 0 inclusive to 2π exclusive, or -1 for an invalid handle or index
Remarks
The handle must come from DAExtractPageTextBlocks
The angle is derived in constant time from the retained baseline vector