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 of default
.hidden
- Specifies the type of hidden
.invisible
- Specifies the type of invisible
.locked
- Specifies the type of locked
.noRotate
- Specifies the type of noRotate
.noView
- Specifies the type of noView
.noZoom
- Specifies the type of noZoom
.print
- Specifies the type of print
.readOnly
- Specifies the type of readOnly
.toggleNoView
- Specifies the type of toggleNoView
.