Tool guides

Add Watermark

Stamp a text watermark such as DRAFT or CONFIDENTIAL on PDF pages, once or tiled, over or behind the content, at any angle and opacity.

What it does

Stamp a text watermark such as DRAFT or CONFIDENTIAL on PDF pages, once or tiled, over or behind the content, at any angle and opacity.

It reads one PDF file. You get: a PDF with the watermark on the pages you chose.

Step by step on the website

Use Add Watermark

  1. Open Add Watermark on the website.

    Open Add Watermark
  2. Drop your PDF file on the page, or choose it.

  3. Choose your settings, or keep the ones already chosen:

    • Watermark: Text or Image (Text at first). Stamp words, or an image such as a logo.
    • Watermark image: choose the file. Accepts AVIF, JPEG, JPG, PNG, TIF, TIFF or WEBP files. Appears when Watermark is Image.
    • Text: type it in. The words to stamp. Appears when Watermark is Text.
    • Opacity: a number from 1 to 100% (35% at first). How see-through the watermark is.
    • Pattern: Once or Tiled (Once at first). One watermark, or a repeating pattern across the page.
    • Tile spacing: a number from 21.2 to 211.7 mm (63.5 mm at first). Distance between repeated watermarks. Appears when Pattern is Tiled.
    • Rotation: a number from -360 to 360° (45° at first). Counter-clockwise; 0 keeps it level.
    • Scale: a number from 5 to 100% (34% at first). The logo's width as a share of the page width. Appears when Watermark is Image.
    • Font size: a number from 2.8 to 63.5 mm (21.2 mm at first). Text size in points. Appears when Watermark is Text.
    • Font: pick a font from the font list. The font the text is set in. The list shows every font you can use, including fonts you uploaded; see the fonts guide for the full list. Appears when Watermark is Text.
    • Style: Regular, Bold, Italic or Bold italic (Regular at first). Text-watermark font style. Appears when Watermark is Text.
    • Colour: pick a colour, or type a hex code such as #c62828. The text colour. Appears when Watermark is Text.
  4. To fine-tune, open More options:

    • Layer: On top or Behind (On top at first). Draw it on top of the page, or behind the text and images.
    • Position: Top left, Top centre, Top right, Middle left, Centre, Middle right, Bottom left, Bottom centre or Bottom right (Centre at first). Where the watermark sits. Leave it unset to centre it on a slant.
    • Placement: Preset or Custom spot (Preset at first). A preset spot, or exactly where you click.
    • Across: a number from 0 to 100% (50% at first). From the left edge to the right edge. Appears when Placement is Custom spot.
    • Down: a number from 0 to 100% (50% at first). From the top edge to the bottom edge. Appears when Placement is Custom spot.
    • Nudge right: a number from -84.7 to 84.7 mm (0 mm at first). Fine-tune the position in points; a negative value moves left.
    • Nudge down: a number from -84.7 to 84.7 mm (0 mm at first). Fine-tune the position in points; a negative value moves up.
    • Pages: type page numbers and ranges, such as 1-3, 5. Leave empty for every page.
    • File name: type a name, or keep the one suggested. Optional. The extension is added for you.
  5. Select Add Watermark to run it.

  6. When it finishes, select Download to save your PDF file.

Settings

Every setting, with the name the page shows and the name the API uses. On the page: shown next to your file. More options: under More options. API only: not offered on the website.

SettingAPI nameChoices or valuesDefaultWhereWhat it does
WatermarktypeText (text), Image (image)TextOn the pageStamp words, or an image such as a logo.
Watermark image (required)watermarkImageA fileOn the page, when Watermark is ImageAccepts AVIF, JPEG, JPG, PNG, TIF, TIFF or WEBP files.
Text (required)textTextOn the page, when Watermark is TextThe words to stamp.
Opacityopacity1 to 100%35On the pageHow see-through the watermark is.
LayerlayerOn top (over), Behind (below)On topMore optionsDraw it on top of the page, or behind the text and images.
PatternpatternOnce (single), Tiled (tile)OnceOn the pageOne watermark, or a repeating pattern across the page.
Tile spacingtileSpacing60 to 600 pt180On the page, when Pattern is TiledDistance between repeated watermarks.
Rotationrotation-360 to 360°45On the pageCounter-clockwise; 0 keeps it level.
PositionpositionTop left (top-left), Top centre (top-center), Top right (top-right), Middle left (middle-left), Centre (middle-center), Middle right (middle-right), Bottom left (bottom-left), Bottom centre (bottom-center), Bottom right (bottom-right)CentreMore optionsWhere the watermark sits. Leave it unset to centre it on a slant.
PlacementpositionModePreset (preset), Custom spot (custom)PresetMore optionsA preset spot, or exactly where you click.
AcrossxPercent0 to 100%50More options, when Placement is Custom spotFrom the left edge to the right edge.
DownyPercent0 to 100%50More options, when Placement is Custom spotFrom the top edge to the bottom edge.
Scalescale5 to 100%34On the page, when Watermark is ImageThe logo's width as a share of the page width.
Font sizefontSize8 to 180 pt60On the page, when Watermark is TextText size in points.
FontfontFamilyTexthelveticaOn the page, when Watermark is TextThe font the text is set in. The list shows every font you can use, including fonts you uploaded; see the fonts guide for the full list.
StylefontStyleRegular (regular), Bold (bold), Italic (italic), Bold italic (bold-italic)RegularOn the page, when Watermark is TextText-watermark font style.
Nudge rightxOffset-240 to 240 pt0More optionsFine-tune the position in points; a negative value moves left.
Nudge downyOffset-240 to 240 pt0More optionsFine-tune the position in points; a negative value moves up.
ColourcolorText#2e2e2eOn the page, when Watermark is TextThe text colour.
PagespagesTextMore optionsLeave empty for every page.
File nameoutputNameTextMore optionsOptional. The extension is added for you.

Run it with the API

Upload your file with POST /api/v2/documents, then start Add Watermark with POST /api/v2/document-operations and toolId add-watermark. The parameters use the API names in the settings table; anything you leave out takes its default. Read the operation until its state is completed, then download the output version.

The request below uses the same starting settings as the website. The script after it does the whole journey: upload, run, wait and download.

Request body
{
  "documentId": "doc_8kq2W1",
  "versionId": "ver_3Jx9Lm",
  "toolId": "add-watermark",
  "parameters": {
    "text": "CONFIDENTIAL"
  },
  "idempotencyKey": "add-watermark-2026-11-22-1"
}
cURL
#!/usr/bin/env bash
# Needs curl and jq.
# Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
set -euo pipefail
API="${WELLFRIEND_API_URL:-https://wellfriend.dev}"
WELLFRIEND_API_KEY="${WELLFRIEND_API_KEY:-YOUR_API_KEY}"
AUTH="Authorization: Bearer $WELLFRIEND_API_KEY"
RUN=$(uuidgen) # reuse this value to retry safely

# upload FILE CONTENT_TYPE KEY: prints the document id and its version id
upload() {
  curl -sS --fail-with-body -X POST "$API/api/v2/documents" -H "$AUTH" -H "Idempotency-Key: $3" \
    -H "Content-Type: $2" -H "X-Wellfriend-Filename: $(basename "$1")" --data-binary "@$1" \
    | jq -r '"\(.document.id) \(.document.currentVersion.id)"'
}

read -r DOCUMENT_ID VERSION_ID < <(upload 'input.pdf' 'application/pdf' "$RUN-upload")

# Run add-watermark
OP=$(jq -n --arg doc "$DOCUMENT_ID" --arg ver "$VERSION_ID" --arg key "$RUN-1"  \
  --argjson parameters '{"text":"CONFIDENTIAL"}' \
  '{documentId: $doc, versionId: $ver, toolId: "add-watermark", parameters: $parameters, idempotencyKey: $key}' \
  | curl -sS --fail-with-body -X POST "$API/api/v2/document-operations" -H "$AUTH" \
      -H "Content-Type: application/json" -H "Idempotency-Key: $RUN-1" --data-binary @- | jq -r .operation.id)
while :; do
  RESULT=$(curl -sS --fail-with-body "$API/api/v2/document-operations/$OP" -H "$AUTH")
  STATE=$(echo "$RESULT" | jq -r .operation.state)
  case "$STATE" in completed) break ;; failed|cancelled|canceled) echo "$RESULT" >&2; exit 1 ;; esac
  sleep 1
done
DOCUMENT_ID=$(echo "$RESULT" | jq -r .operation.outputDocumentId)
VERSION_ID=$(echo "$RESULT" | jq -r .operation.outputVersionId)

# Download the result
curl -sS --fail-with-body "$API/api/v2/documents/$DOCUMENT_ID/versions/$VERSION_ID/content" -H "$AUTH" -o 'input-wellfriend.pdf'

Run it with the SDKs

The SDKs upload the file, run add-watermark with the same parameters and wait for the result: wf.tools.addWatermark() in TypeScript, wf.tools.add_watermark() in Python, wf.Tools.AddWatermark() in Go.

TypeScript SDK
// wellfriend-document-sdk: npm install wellfriend-document-sdk@latest. An ES module (top-level await): save it as .mts.
// Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
import { Wellfriend } from "wellfriend-document-sdk";

const wf = new Wellfriend({ apiKey: process.env.WELLFRIEND_API_KEY ?? "YOUR_API_KEY" });
const result = await wf.tools.addWatermark("input.pdf", { text: "CONFIDENTIAL" });
await result.save("input-wellfriend.pdf");
Python SDK
# wellfriend-document-sdk: pip install -U wellfriend-document-sdk
# Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
import os

from wellfriend import Wellfriend

wf = Wellfriend(api_key=os.environ.get("WELLFRIEND_API_KEY", "YOUR_API_KEY"))
result = wf.tools.add_watermark("input.pdf", text="CONFIDENTIAL")
result.save("input-wellfriend.pdf")
Go SDK
// go get wellfriend.dev/go/wellfriend@latest
package main

import (
	"context"
	"fmt"
	"os"

	"wellfriend.dev/go/wellfriend"
)

func main() {
	if err := run(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}

func run() error {
	// Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
	apiKey := os.Getenv("WELLFRIEND_API_KEY")
	if apiKey == "" {
		apiKey = "YOUR_API_KEY"
	}
	wf := wellfriend.New(wellfriend.WithAPIKey(apiKey))
	ctx := context.Background()
	res, err := wf.Tools.AddWatermark(ctx, wellfriend.File("input.pdf"), &wellfriend.AddWatermarkParams{Text: wellfriend.String("CONFIDENTIAL")})
	if err != nil {
		return err
	}
	return res.Save(ctx, "input-wellfriend.pdf")
}