AttachStructTreeCursorAnnot

タグ付き PDF、構造修復

説明

注釈を間接オブジェクトにし、それを参照する /Type /OBJR の kid 辞書をカーソルの構造要素に追加します

構文

Delphi

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

パラメータ

CursorID有効な構造要素カーソル
PageNumber1 起算のページ番号
AnnotIndexPage /Annots 内の 1 起算の注釈インデックス

戻り値

成功時は 1、引数が不正なら 0

備考

対応する注釈の /StructParent と ParentTree エントリを割り当てるには、ReconcileStructParentTree か CommitStructTreeTransaction を実行します