Public Enum to define icon type of popup annotation.
// 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 icon type of the popup annotation as comment
annotation.icon = PdfPopupIcon.comment;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
comment
- Specifies the type of comment
.help
- Specifies the type of help
.insert
- Specifies the type of insert
.key
- Specifies the type of key
.newParagraph
- Specifies the type of new paragraph
.note
- Specifies the type of note
.paragraph
- Specifies the type of paragraph
.