GetTextBlockCharAngle

Text, Extraction, Geometry

Description

Returns the character baseline angle in radians after applying the selected document origin and scale

Syntax

Delphi

Function TPDFlib.GetTextBlockCharAngle(TextBlockListID, Index, CharIndex: Integer): Double;

Parameters

TextBlockListIDHandle returned by ExtractPageTextBlocks
Index1-based text block index
CharIndex1-based character position

Return value

An angle from 0 inclusive to 2π exclusive, or -1 for an invalid handle or index

Remarks

The angle is derived in constant time from geometry retained during extraction

Option 18 rotates character geometry into the normalised extraction space; omit that option to query the original orientation

See also

GetTextBlockCharMatrix, DAGetTextBlockCharAngle