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 of approved
.asIs
- Specifies the type of asIs
.completed
- Specifies the type of completed
.confidential
- Specifies the type of confidential
.departmental
- Specifies the type of departmental
.draft
- Specifies the type of draft
.experimental
- Specifies the type of experimental
.expired
- Specifies the type of expired
.final
- Specifies the type of final
.forComment
- Specifies the type of forComment
.forPublicRelease
- Specifies the type of forPublicRelease
.informationOnly
- Specifies the type of informationOnly
.notApproved
- Specifies the type of notApproved
.notForPublicRelease
- Specifies the type of notForPublicRelease
.preliminaryResults
- Specifies the type of preliminaryResults
.sold
- Specifies the type of sold
.topSecret
- Specifies the type of topSecret
.void
- Specifies the type of void
.