Public Enum to define annotation state.
// 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: PdfPopupAnnotation = page.annotations.at(0) PdfPopupAnnotation;
// Sets the state of the popup annotation as accepted
annotation.state = PdfAnnotationState.accepted;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
accepted
- Specifies the state of accepted
.cancel
- Specifies the state of cancel
.completed
- Specifies the state of completed
.marked
- Specifies the state of marked
.none
- Specifies the default state of none
.rejected
- Specifies the state of rejected
.unknown
- Specifies the state of unknown
.unmarked
- Specifies the state of unmarked
.