DS Server

Javascript: Annotations.setStampList Method

Method|Introduced in 29.0

Description

Replaces the toolbar's stamp definitions.

Syntax

<void> Annotations.setStampList(<StampDefinition[]> stamps)

Parameters

ParameterDescription
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);
}