PdfAnnotationFlag
12 Sep 20251 minute to read
Public Enum to define annotation flag types.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access first page
let page: PdfPage = document.getPage(0);
// Access the annotation at index 0
let annotation: PdfAnnotation = page.annotations.at(0);
// Sets the annotation flag to enable print
annotation.flags = PdfAnnotationFlag.print;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
default- Specifies the type ofdefault. -
hidden- Specifies the type ofhidden. -
invisible- Specifies the type ofinvisible. -
locked- Specifies the type oflocked. -
noRotate- Specifies the type ofnoRotate. -
noView- Specifies the type ofnoView. -
noZoom- Specifies the type ofnoZoom. -
print- Specifies the type ofprint. -
readOnly- Specifies the type ofreadOnly. -
toggleNoView- Specifies the type oftoggleNoView.