Watermark a PDF
pdf_watermarkStamp a text watermark on every page of a PDF, with control over color, opacity, size, and placement. Files are processed locally and never uploaded.
Instructions
Stamp a text watermark on every page. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "<input>",
"output": "<output>",
"text": "<text>"
},
"name": "pdf_watermark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Watermark text | |
| color | No | Color as #RRGGBB (default #808080) | |
| force | No | Replace the output file if it already exists (default: refuse, so existing files are never silently clobbered) | |
| input | Yes | Path to the input PDF | |
| output | Yes | Path to write the watermarked PDF | |
| opacity | No | Opacity 0-1 (default 0.15) | |
| fontSize | No | Font size in points (default 48) | |
| position | No | Placement (default center) |