PdfRubberStampAnnotationIcon
12 Sep 20251 minute to read
Public Enum to define icon type of rubber stamp 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: PdfRubberStampAnnotation = page.annotations.at(0) PdfRubberStampAnnotation;
// Sets the rubber stamp annotation icon type as confidential
annotation.icon = PdfRubberStampAnnotationIcon.confidential;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
approved- Specifies the type ofapproved. -
asIs- Specifies the type ofasIs. -
completed- Specifies the type ofcompleted. -
confidential- Specifies the type ofconfidential. -
departmental- Specifies the type ofdepartmental. -
draft- Specifies the type ofdraft. -
experimental- Specifies the type ofexperimental. -
expired- Specifies the type ofexpired. -
final- Specifies the type offinal. -
forComment- Specifies the type offorComment. -
forPublicRelease- Specifies the type offorPublicRelease. -
informationOnly- Specifies the type ofinformationOnly. -
notApproved- Specifies the type ofnotApproved. -
notForPublicRelease- Specifies the type ofnotForPublicRelease. -
preliminaryResults- Specifies the type ofpreliminaryResults. -
sold- Specifies the type ofsold. -
topSecret- Specifies the type oftopSecret. -
void- Specifies the type ofvoid.