AttachStructTreeCursorAnnot

标记 PDF、结构修复

描述

确保注释为间接对象,并在光标结构元素上添加引用它的 /Type /OBJR 子项字典

语法

Delphi

Function TPDFlib.AttachStructTreeCursorAnnot(CursorID, PageNumber, AnnotIndex: Integer): Integer;

参数

CursorID有效的结构元素光标
PageNumber1 基准页码
AnnotIndexPage /Annots 中的 1 基准注释索引

返回值

成功时返回 1,参数无效时返回 0

备注

请运行 ReconcileStructParentTree 或 CommitStructTreeTransaction 来分配匹配的注释 /StructParent 与 ParentTree 项