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?
optionaltext?:string
The text of the watermark.
fontSettings?
optionalfontSettings?:IFontSettings
The font settings of watermark text.
scale?
optionalscale?:number
The scale of watermark text. The default value is 0.28.
opacity?
optionalopacity?:number
The opacity of watermark text. The default value is 0.1.