Add a CONFIDENTIAL watermark to PDFs by API

Stamp CONFIDENTIAL, DRAFT or a client name on every page of a PDF with one API call. Opacity, color, angle, position and layer, with examples and what it costs.

Two pages stamped diagonally with CONFIDENTIAL and DRAFT

A watermark tells the reader what the document is before they read a word: a draft, a confidential copy, a sample, a copy made for one client. The PDF Watermark API stamps your text on every page, or the pages you choose, in one call.

The basic call

curl https://api.justapi.tech/v1/pdf/watermark \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"source": {"url": "https://files.example.com/proposal.pdf"}, "options": {"text": "CONFIDENTIAL"}}'

With only text, you get grey bold text at 30% opacity, centered, at 45 degrees, scaled to the page.

The options that matter

  • opacity from 0.05 to 1. Around 0.15 to 0.3 lets the page stay readable.
  • color as hex, like #C0392B for red.
  • position: center, or one of eight corners and edges like top-right or bottom-center.
  • rotation in degrees. The default is 45 at the center and 0 at the edges.
  • font_size to fix the size. Without it, the text is scaled to fit the page.
  • layer: over the content (the default) or under it. Under looks cleaner on digital documents, but a scanned page is one big image, so a mark under it is hidden.
  • pages: the usual page list, like 2- to leave the cover clean.

A per-client watermark

To trace a leaked copy, stamp the recipient on their copy:

curl https://api.justapi.tech/v1/pdf/watermark \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"source": {"file_id": "file_..."}, "options": {"text": "Prepared for Acme Corp, 2026-11-05", "position": "bottom-center", "rotation": 0, "font_size": 9, "opacity": 0.6}}'

Use file_id when the source is an earlier result: it is read from storage directly.

How it is drawn

The text is real vector text in Helvetica, written into each page. It stays sharp at any zoom, adds a few kilobytes, and the original content is untouched. The text can use Latin characters, including accented letters; other scripts are refused with a clear error.

Can it be removed?

A text watermark can be removed by someone with a PDF editor and some patience. It is a label, not a lock. If the mark must survive, watermark the file and then convert the pages to images with the PDF to Image API, or protect it with a password and no editing permission using PDF Protect.

Cost

$0.005 per call at the first tier. Signed PDFs are refused with signed_pdf, because a watermark would break the signature. Failures are free.

Try the look with the free PDF watermark tool before you pick your settings.