Loads a custom stamp list into the annotations.

Introduced: X19.

<void> TXDocumentViewer.annotations.setStampList(<Array> stampList);

Parameters

Parameter Description
stampList The stamp list in form of an array.

Examples

This sample code adds a new custom stamp to the collection of available stamps.

// Create a new stamp object

var customStamp = {
    text: "Custom stamp",
    color: "rgba(255, 0, 0, 1)",
    font: "Arial",
    size: "38",
    weight: "bold",
    style: "normal"
};

// get current stamp list
var currentStampList = TXDocumentViewer.annotations.getStampList();

// add new stamp to the beginning
currentStampList.unshift(customStamp);

// apply the stamp list
TXDocumentViewer.annotations.setStampList(currentStampList);