Tools API Blog
Sign in Create account

PDF watermark

Watermark is an API that overlays text (e.g. "CONFIDENTIAL" or "DRAFT") or your logo onto a PDF. Great for protecting documents or branding them from n8n, Make or Zapier, with no servers to maintain.

How it works

You send a PDF plus either text or an image (your logo), and get back the same PDF with the watermark overlaid on every page (or just the ones you pick). By default it's diagonal, centered and semi-transparent. Nothing is stored.

Only one at a time: text OR image, not both in the same call.

All you need

  • Your API key. Create it in your dashboard with "+ Create key". It's shown only once, so copy and save it.
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream… all have one).

Text watermark: how to use it in n8n

The simplest way: send your PDF as is (as binary data) and the text as a parameter. In the HTTP Request node:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-watermark
  • Send Query Parameters: on, and add text = CONFIDENTIAL (and whatever you want: opacity, position… see the table).
  • Send Headers: on → add two: x-api-key = your key, and Content-Type = application/pdf
  • Send Body: on → choose the binary file option (in n8n: "n8n Binary File", with your PDF's binary property, usually data)
  • Under Options → Response → Response Format: choose File

In Make: same method and URL, add text to Query String, the two headers in Headers, and the PDF as binary data in the body.

Watermarking with your logo

To use an image instead of text, you need to send two files at once (the PDF and the logo), so this variant only works with a JSON body, not a binary "Send Body":

{ "file": "<your PDF in base64>", "image": "<your logo in base64, PNG or JPEG>" }

In n8n, convert them to base64 with a Code node using {{'{{'}}$binary.data.toString('base64'){{'}}'}} for each one, and paste them into the JSON Body (Body Content Type: JSON).

Options (as Query Parameters or in the JSON)

OptionDefaultWhat it does
text-The watermark text (max 200 characters). Use this OR image, not both.
image-Your logo in base64 (PNG or JPEG). JSON body only.
positioncentercenter, top-left, top-right, bottom-left or bottom-right.
opacity0.3Transparency, from 0.05 (almost invisible) to 1 (opaque).
rotation45Rotation in degrees (0 = no rotation).
pagesallWhich pages to mark, e.g. 1-3,5.

What you get back

The watermarked PDF itself, ready to save or send. (In JSON mode, the PDF comes in base64.)