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;

Parameters

TextBlockListIDHandle returned by ExtractPageTextBlocks
IndexOne-based text block index within that list
CharIndexOne-based character index within the block's extracted text
MinX, MinYMinimum numeric coordinates across all four cell corners
MaxX, MaxYMaximum numeric coordinates across all four cell corners

Return values

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