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
| TextBlockListID | Handle returned by DAExtractPageTextBlocks |
|---|---|
| Index | 1-based text block index |
| CharIndex | 1-based UTF-16 code-unit position inside the block text |
| M11 | Receives the X component of the baseline advance vector; zero on failure |
| M12 | Receives the Y component of the baseline advance vector; zero on failure |
| M21 | Receives the X component of the full character-cell height vector; zero on failure |
| M22 | Receives the Y component of the full character-cell height vector; zero on failure |
| MDX | Receives the baseline origin X coordinate; zero on failure |
| MDY | Receives the baseline origin Y coordinate; zero on failure |
Outputs
| M11, M12 | Baseline advance vector |
|---|---|
| M21, M22 | Full character-cell height vector |
| MDX, MDY | Baseline 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