DetachStructTreeCursorAnnot

Tagged PDF, structure repair

Description

Removes matching /Type /OBJR kid entries pointing to annotation AnnotIndex on PageNumber

Syntax

Delphi

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

Parameters

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

Return values

1 when at least one matching OBJR was removed, or 0 otherwise

Remarks

Stale annotation /StructParent keys are stripped on the next ReconcileStructParentTree call