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

text
String
required
The text to display as watermark.
font_size
Integer
default:"16"
The font size used.
font_family
String
default:"Helvetica"
The font family used.
font_color
String
default:"000000"
The color of the text.
font_opacity
Integer
default:"100"
The opacity for the text.
font_bold
Boolean
default:"false"
Set to true if you want the text bold.
font_italic
Boolean
default:"false"
Set to true if you want the text in italic.
offset_x
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’).
offset_y
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’).
rotate
Integer
default:"-45"
The degree for the rotated element.

Via Image

image
String
required
The image to display as watermark. Can be a URL or a Base64 encoded content.
offset_x
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’).
offset_y
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’).
rotate
Integer
default:"-45"
The degree for the rotated element.