Watermark
Version 0.3 is under development. Do not use in a production.
Documentation is under development.
Properties
text
- watermark textcolor
- color of textopacity
opacity of textbold
- bold style of textitalics
- italics style of textfontSize
- own font size of text (ideal size is calculated automatically)angle
- angle of text rotation
Examples
Example of simple basic usage:
var docDefinition = {
watermark: 'test watermark',
content: [
'...'
]
};
Example of font style:
var docDefinition = {
watermark: { text: 'test watermark', color: 'blue', opacity: 0.3, bold: true, italics: false },
content: [
'...'
]
};
Example of own font size:
var docDefinition = {
watermark: { text: 'test watermark', fontSize: 20 },
content: [
'...'
]
};
Example of watermark rotation angle:
var docDefinition = {
watermark: { text: 'test watermark', angle: 70 },
content: [
'...'
]
};