Watermark

Properties

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: [
    '...'
  ]
};