DAGetTextBlockCharLooseBox

Direct access, Text, Geometry

Description

Returns the minimum and maximum raw page coordinates across a direct-access character quad

Syntax

Delphi

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

Parameters

TextBlockListIDHandle returned by DAExtractPageTextBlocks
Index1-based text block index
CharIndex1-based UTF-16 code-unit position inside the block text
MinXReceives the minimum X coordinate of the rotated or sheared cell; zero on failure
MinYReceives the minimum Y coordinate of the rotated or sheared cell; zero on failure
MaxXReceives the maximum X coordinate of the rotated or sheared cell; zero on failure
MaxYReceives the maximum Y coordinate of the rotated or sheared cell; 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 and no selected-document coordinate conversion is applied

See also

DAGetTextBlockCharQuad, DAGetTextBlockCharBox