AttachStructTreeCursorAnnot

Tagged PDF, structure repair

Description

Ensures the annotation is an indirect object and adds a /Type /OBJR kid dictionary referencing it on the cursor structure element

Syntax

Delphi

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

Parameters

CursorIDValid structure-element cursor
PageNumberOne-based page number
AnnotIndexOne-based annotation index in Page /Annots

Return values

1 on success, or 0 if arguments are invalid

Remarks

Run ReconcileStructParentTree or CommitStructTreeTransaction to assign matching annotation /StructParent and ParentTree entries