THotPDF.AppendStructureMarkedContent Method
通过 MCR 字典和页面 ParentTree 把一个页面本地 MCID 关联到已有结构元素
声明
procedure AppendStructureMarkedContent(
StructElem: THPDFDictionaryObject;
PageIndex, MCID: Integer);
参数
| 名称 | 用途 |
|---|---|
StructElem | 由 AddStructureElement 返回的已有结构元素 |
PageIndex | 拥有该标记内容的页面索引,从零开始 |
MCID | 该页面上唯一的非负标记内容标识符 |
使用说明
- 该方法把
<</Type /MCR /Pg ... /MCID ...>>追加到结构元素的K数组 - 页面会获得或复用其
StructParents键 - 无效页面、负 MCID、nil 元素以及非数组的
K条目都会被拒绝