DAGetTextBlockCharMatrix

Direct access, Text, Geometry

Description

Returns a retained character-cell transform in raw page coordinates

Syntax

Delphi

Function TPDFlib.DAGetTextBlockCharMatrix(TextBlockListID, Index, CharIndex: Integer; Out M11, M12, M21, M22, MDX, MDY: Double): Integer;

Parameters

TextBlockListIDHandle returned by DAExtractPageTextBlocks
Index1-based text block index
CharIndex1-based UTF-16 code-unit position inside the block text
M11Receives the X component of the baseline advance vector; zero on failure
M12Receives the Y component of the baseline advance vector; zero on failure
M21Receives the X component of the full character-cell height vector; zero on failure
M22Receives the Y component of the full character-cell height vector; zero on failure
MDXReceives the baseline origin X coordinate; zero on failure
MDYReceives the baseline origin Y coordinate; zero on failure

Outputs

M11, M12Baseline advance vector
M21, M22Full character-cell height vector
MDX, MDYBaseline origin

Return values

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

Remarks

Rotation and shear are preserved and no selected-document origin or scale conversion is applied

See also

DAGetTextBlockCharQuad, GetTextBlockCharMatrix