HerramientasTools
Entrar Crear cuenta

Marca de agua en PDF

Marca de agua es una API que superpone un texto (ej. "CONFIDENCIAL" o "BORRADOR") o tu logo sobre un PDF. Perfecto para proteger documentos o marcarlos con tu marca desde n8n, Make o Zapier, sin montar servidores.

Cómo funciona

Le mandas un PDF y, o bien un texto, o bien una imagen (tu logo), y te devuelve el mismo PDF con la marca superpuesta en todas las páginas (o solo las que elijas). Por defecto sale en diagonal, centrada y semitransparente. No guarda nada.

Solo uno de los dos a la vez: texto O imagen, no ambos en la misma llamada.

Lo único que necesitas

  • Tu API key. La creas en tu panel con "+ Crear llave". Se muestra una sola vez, así que cópiala y guárdala.
  • En tu plataforma de automatización, un paso de tipo "HTTP Request" / "Hacer una petición HTTP" (lo tienen n8n, Make, Zapier, Pipedream…).

Marca de agua de texto: cómo usarlo en n8n

La forma más sencilla: le envías tu PDF tal cual (como archivo binario) y el texto como parámetro. En el nodo HTTP Request:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-watermark
  • Send Query Parameters: actívalo y añade text = CONFIDENCIAL (y lo que quieras: opacity, position… ver la tabla).
  • Send Headers: actívalo y añade dos: x-api-key = tu llave, y Content-Type = application/pdf
  • Send Body: actívalo → elige la opción para mandar un archivo binario (en n8n: "n8n Binary File", con la propiedad binaria de tu PDF, normalmente data)
  • En Options → Response → Response Format: elige File

En Make: mismo método y URL, en Query String añade text, en Headers las dos cabeceras, y el PDF como dato binario en el cuerpo.

Marca de agua de tu logo

Para usar una imagen en vez de texto, hace falta mandar dos archivos a la vez (el PDF y el logo), así que esta variante solo funciona con el cuerpo en JSON, no con "Send Body" binario:

{ "file": "<tu PDF en base64>", "image": "<tu logo en base64, PNG o JPEG>" }

En n8n, conviértelos a base64 con un nodo Code y la expresión {{'{{'}}$binary.data.toString('base64'){{'}}'}} para cada uno, y pégalos en el JSON del Body (Body Content Type: JSON).

Opciones (en Query Parameters o en el JSON)

OpciónPor defectoPara qué sirve
textEl texto de la marca de agua (máx. 200 caracteres). Usa esta O image, no ambas.
imageTu logo en base64 (PNG o JPEG). Solo con cuerpo JSON.
positioncentercenter, top-left, top-right, bottom-left o bottom-right.
opacity0.3Transparencia, de 0.05 (casi invisible) a 1 (opaca).
rotation45Grados de giro (0 = sin girar).
pagestodasQué páginas marcar, ej. 1-3,5.

Lo que recibes

El PDF marcado directamente, listo para guardar o enviar. (En modo JSON, el PDF llega en base64.)

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
textThe watermark text (max 200 characters). Use this OR image, not both.
imageYour 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.)