DAGetTextBlockCharAngle
直接访问、文本、几何
描述
以原始页面坐标返回直接访问字符的基线角度
语法
Delphi
Function TPDFlib.DAGetTextBlockCharAngle(TextBlockListID, Index, CharIndex: Integer): Double;参数
| TextBlockListID | 由 DAExtractPageTextBlocks 返回的句柄 |
|---|---|
| Index | 从 1 开始的文本块索引 |
| CharIndex | 块文本内部从 1 开始的 UTF-16 代码单元位置 |
返回值
返回 0(含)到 2π(不含)之间的角度;句柄或索引无效时返回 -1
备注
句柄必须来自 DAExtractPageTextBlocks
角度由保留的基线向量以常数时间推导