GetTextBlockCharBox

Text, Extraction, Geometry

Description

Returns an axis-aligned character-cell box in selected-document coordinates

Syntax

Delphi

Function TPDFlib.GetTextBlockCharBox(TextBlockListID, Index, CharIndex: Integer; Out Left, Top, Right, Bottom: 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
Left, TopMinimum numeric coordinates of the axis-aligned cell box
Right, BottomMaximum numeric coordinates of the axis-aligned cell box

Return values

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

Remarks

The result is derived directly from retained character geometry and remains constant-time for late characters in long runs

See also

GetTextBlockCharLooseBox, DAGetTextBlockCharBox