PdfAnnotationState
12 Sep 20251 minute to read
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 ofaccepted. -
cancel- Specifies the state ofcancel. -
completed- Specifies the state ofcompleted. -
marked- Specifies the state ofmarked. -
none- Specifies the default state ofnone. -
rejected- Specifies the state ofrejected. -
unknown- Specifies the state ofunknown. -
unmarked- Specifies the state ofunmarked.