MoveAnnotationZOrder

Annotations, Document Editing

Description

Moves an annotation to another 1-based position in the selected page Annots array

Syntax

Function TPDFlib.MoveAnnotationZOrder(Index, NewZOrder: Integer): Integer;

Parameters

IndexCurrent 1-based annotation index
NewZOrderTarget 1-based position where larger values are treated as higher Z order

Return values

1 when both positions are valid, otherwise 0

Remarks

The operation moves the existing indirect reference in place and does not copy the annotation dictionary or appearance stream

Indices between the old and new positions change after a successful move

See also

HitTestAnnotation, GetAnnotationHitsJSON