GetTextBlockCharOrigin

Text, Extraction, Geometry

Description

Returns the baseline origin of one extracted character after applying the selected document origin and scale

Syntax

Delphi

Function TPDFlib.GetTextBlockCharOrigin(TextBlockListID, Index, CharIndex: Integer; Out X, Y: Double): Integer;

Parameters

TextBlockListIDHandle returned by ExtractPageTextBlocks
Index1-based text block index
CharIndex1-based character position
X, YReceive the transformed baseline origin

Return value

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

Remarks

The next character origin normally equals the current origin plus the baseline advance returned in M11 and M12 by GetTextBlockCharMatrix

See also

GetTextBlockCharMatrix, DAGetTextBlockCharOrigin