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
| CursorID | Valid structure-element cursor |
|---|---|
| PageNumber | One-based page number |
| AnnotIndex | One-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