Skip to main content
You can add a watermark to your documents via these alternatives:
  • Via Text
  • Via Image
Each alternatives has a set of options, which is detailed here:

Via Text

String
required
The text to display as watermark.
Integer
default:"16"
The font size used.
String
default:"Helvetica"
The font family used.
String
default:"000000"
The color of the text.
Integer
default:"100"
The opacity for the text.
Boolean
default:"false"
Set to true if you want the text bold.
Boolean
default:"false"
Set to true if you want the text in italic.
String
default:"center"
The X position. Can be either a String (left, center, right) or a number with unit (defaults to pixels. Allowed units are ‘px’, ‘in’, ‘cm’, ‘mm’, ‘pt’).
String
default:"middle"
The Y position. Can be either a string (top, middle, bottom) or a number with unit (defaults to pixels. Allowed units are ‘px’, ‘in’, ‘cm’, ‘mm’, ‘pt’).
Integer
default:"-45"
The degree for the rotated element.

Via Image

String
required
The image to display as watermark. Can be a URL or a Base64 encoded content.
String
default:"center"
The X position. Can be either a String (left, center, right) or a number with unit (defaults to pixels. Allowed units are ‘px’, ‘in’, ‘cm’, ‘mm’, ‘pt’).
String
default:"middle"
The Y position. Can be either a string (top, middle, bottom) or a number with unit (defaults to pixels. Allowed units are ‘px’, ‘in’, ‘cm’, ‘mm’, ‘pt’).
Integer
default:"-45"
The degree for the rotated element.