Skip to main content

Interface: IWatermarkTextConfig

A configuration of watermark text.

Remarks

IWatermarkConfig uses this interface.

Example

configuration = {
watermark: {
text: {
text: "watermark",
fontSettings: {
postScriptName: "LucidaSans-Italic",
size: 14,
fauxBold: false,
fauxItalic: false,
},
scale: 0.28,
opacity: 0.5,
},
visibility: {
proof: true,
canvas: true,
},
},
};

Properties

text?

optional text?: string

The text of the watermark.


fontSettings?

optional fontSettings?: IFontSettings

The font settings of watermark text.


scale?

optional scale?: number

The scale of watermark text. The default value is 0.28.


opacity?

optional opacity?: number

The opacity of watermark text. The default value is 0.1.

Was this page helpful?