GetTextBlockCharMatrix
Text, Extraction, Geometry
Description
Returns a character-cell transform in selected-document coordinates
Syntax
Delphi
Function TPDFlib.GetTextBlockCharMatrix(TextBlockListID, Index, CharIndex: Integer; Out M11, M12, M21, M22, MDX, MDY: Double): Integer;Outputs
| M11, M12 | Baseline advance vector from this character origin to the next cell origin |
|---|---|
| M21, M22 | Full character-cell height vector, retaining rotation and shear |
| MDX, MDY | Baseline origin of the character |
Return value
1 on success, or 0 with zero outputs for an invalid handle or index
Remarks
The matrix is retained during one extraction pass, making repeated queries constant time
Use GetTextBlockCharQuad when the exact descent-adjusted cell corners are required