Javascript: Annotations.setStampList Method
Description
Replaces the toolbar's stamp definitions.
Syntax
<void> Annotations.setStampList(<StampDefinition[]> stamps)Parameters
| Parameter | Description |
|---|---|
| stamps | Stamp definitions that replace the current list. |
Return Value
Replaces the toolbar's stamp definitions.
Examples
The following example demonstrates annotations.setStampList in a practical Document Viewer workflow. Loads a custom stamp list into the annotations.
function configureAnnotationStamps(stamps) {
TXDocumentViewer.annotations.setStampList(stamps);
console.log("Configured annotation stamps:", stamps.length);
}