GetTextBlockCharLooseBox

Text, Extraction, Geometry

Description

Returns the axis-aligned numeric extents of a character quad in selected-document coordinates

Syntax

Delphi

Function TPDFlib.GetTextBlockCharLooseBox(TextBlockListID, Index, CharIndex: Integer; Out MinX, MinY, MaxX, MaxY: Double): Integer;

Outputs

MinX, MinYMinimum numeric coordinates across all four cell corners
MaxX, MaxYMaximum numeric coordinates across all four cell corners

Return value

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

Remarks

This box is convenient for broad-phase hit testing; use GetTextBlockCharQuad for exact rotated or sheared containment

See also

GetTextBlockCharQuad, GetTextBlockCharBox