THotPDF.SetLoadedAnnotationFlags Method

Sets the Flags integer value of a specific annotation on the specified page of the loaded PDF document to control the annotation's visibility, printability, and interactive behaviour

Declaration

procedure SetLoadedAnnotationFlags(PageIndex, AnnotationIndex, AFlags: Integer);

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page
AnnotationIndexThe zero-based index of the target annotation in the page annotation array
AFlagsAnnotation flag integer, a bitmask value defined by the PDF specification: Invisible=1, Hidden=2, Print=4, NoZoom=8, NoRotate=16, NoView=32, ReadOnly=64, Locked=128, ToggleNoView=256, LockedContents=512

Usage notes

Related APIs