PdfAttachmentIcon
12 Sep 20251 minute to read
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 ofgraph. -
paperClip- Specifies the icon ofpaperClip. -
pushPin- Specifies the default icon ofpushPin. -
tag- Specifies the icon oftag.