IWatermarkImageConfig Interface

A configuration of watermark image.

example
configuration = {
    watermark: {
        text: {
            text: "watermark",
            fontSettings: {
                postScriptName: "ArialMT",
                size: 14,
                fauxBold: false,
                fauxItalic: false
            },
            scale: 0.28,
            opacity: 0.5
        },
        image: {
            name: "watermark.png",
            repeat: true,
            opacity: 0.1
        },
        visibility: {
            proof: true,
            canvas: true
        }
    }
};

Properties

Optional name

name: string

The file name of the watermark image. This file is in the ~\ProductTemplates\watermarks\ folder.

Optional opacity

opacity: number

The opacity of the watermark image. The default value is 0.1.

Optional repeat

repeat: boolean

Enables repeating the watermark image on the canvas and proof images. If false, then the image is shown in the center of the canvas. The default value is true.