PdfPopupIcon
12 Sep 20251 minute to read
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 ofcomment. -
help- Specifies the type ofhelp. -
insert- Specifies the type ofinsert. -
key- Specifies the type ofkey. -
newParagraph- Specifies the type ofnew paragraph. -
note- Specifies the type ofnote. -
paragraph- Specifies the type ofparagraph.