type TPdfWordBox = record ... end;
| Field | Type | Purpose |
|---|---|---|
Text | WString | 词文本 |
StartIndex | Integer | 从 0 开始的 FTextPage 字符索引 |
Count | Integer | 词中的字符数 |
Rect | TPdfRectangle | 词字符框的页面空间并集 |
Page | Integer | 从 1 开始的页码 |
词框按空白、制表符、换行符和 NBSP 字符拆分页面文本
组件方法还将 FPDFText_GetCharBox 矩形合并为每个词的一个页面空间 TPdfRectangle