> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pdfshift.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding a watermark

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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.