Public Enum to define icon type of attachment 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: PdfAttachmentAnnotation = page.annotations.at(0) PdfAttachmentAnnotation;
// Sets the icon type of attachment annotation to pushPin
annotation.icon = PdfAttachmentIcon.pushPin;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
graph
- Specifies the icon of graph
.paperClip
- Specifies the icon of paperClip
.pushPin
- Specifies the default icon of pushPin
.tag
- Specifies the icon of tag
.