PDF Watermark
Add a text watermark overlay to PDF pages
/v1/pdf/watermark
curl -X POST "https://pdf.toolkitapi.io/v1/pdf/watermark" \
-H "Content-Type: application/json" \
-d '{
"url": "https://toolkitapi.io/contract.pdf",
"text": "CONFIDENTIAL",
"font_size": 60,
"opacity": 0.15,
"angle": 45
}'
import httpx
resp = httpx.post(
"https://pdf.toolkitapi.io/v1/pdf/watermark",
json={
"url": "https://toolkitapi.io/contract.pdf",
"text": "CONFIDENTIAL",
"font_size": 60,
"opacity": 0.15,
"angle": 45
},
)
print(resp.json())
const resp = await fetch("https://pdf.toolkitapi.io/v1/pdf/watermark", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://toolkitapi.io/contract.pdf",
"text": "CONFIDENTIAL",
"font_size": 60,
"opacity": 0.15,
"angle": 45
}),
});
const data = await resp.json();
console.log(data);
# See curl example
{
"pdf": "JVBERi0xLjcKMSAwIG9iago8...",
"page_count": 8,
"watermarked_pages": 8,
"file_size": 298750
}
Description
How to Use
1. Provide the PDF via `pdf` (base64) or `url` (public URL).
2. Set `text` to your watermark message (up to 200 characters).
3. Optionally adjust `font_size` (8–200, default 48), `opacity` (0.01–1.0, default 0.15), and `angle` (0–360, default 45).
4. Optionally set `pages` to watermark only specific pages. Omit for all pages.
About This Tool
PDF Watermark overlays a text stamp on every page — or specific pages — of a PDF document. You control the text, font size, opacity, and rotation angle to create subtle background marks or prominent labels.
Use this to mark documents as "DRAFT", "CONFIDENTIAL", "SAMPLE", or "DO NOT COPY" before sharing. The watermark is rendered as a semi-transparent text layer centered on each page, visible when viewing but not obscuring the underlying content.
The watermark is permanently embedded in the output PDF. It's not a removable annotation — it's merged into the page content stream.
Why Use This Tool
- Confidentiality marking — Stamp documents as "CONFIDENTIAL" or "INTERNAL" before distribution
- Draft labeling — Mark working documents as "DRAFT" to prevent premature use
- Sample branding — Watermark sample documents with "SAMPLE" or "PREVIEW"
- Copyright protection — Add ownership text to prevent unauthorized redistribution
- Review tracking — Mark documents with reviewer names or dates during approval workflows
Frequently Asked Questions
Can I use multiple watermarks on the same page?
Is the watermark removable?
What font is used?
Start using PDF Watermark now
Get your free API key and make your first request in under a minute.