DAGetTextBlockCharOrigin

Direct access, Text, Geometry

Description

Returns the baseline origin of one direct-access character in raw page coordinates

Syntax

Delphi

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

Parameters

TextBlockListIDHandle returned by DAExtractPageTextBlocks
Index1-based text block index
CharIndex1-based UTF-16 code-unit position inside the block text
XReceives the baseline origin X coordinate in raw page coordinates; zero on failure
YReceives the baseline origin Y coordinate in raw page coordinates; zero on failure

Return values

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

Remarks

The handle must come from DAExtractPageTextBlocks

See also

DAGetTextBlockCharMatrix, GetTextBlockCharOrigin