GetTextBlockCharQuad

Text, Extraction, Geometry

Description

Returns the four corners of an extracted character cell after applying the selected document origin and scale

Syntax

Delphi

Function TPDFlib.GetTextBlockCharQuad(TextBlockListID, Index, CharIndex: Integer; Out X1, Y1, X2, Y2, X3, Y3, X4, Y4: Double): Integer;

Outputs

The points follow the source cell order: lower baseline side start, lower baseline side end, upper side end, upper side start

Return value

1 on success, or 0 with zero outputs for an invalid handle or index

Remarks

The quad preserves arbitrary rotation, shear and reversed baselines and includes the font descent below the baseline

See also

GetTextBlockCharLooseBox, DAGetTextBlockCharQuad