pdf_watermark
Add diagonal text watermarks to PDF pages to mark documents as confidential or draft, with automatic centering for any rotation angle.
Instructions
Add a diagonal text watermark across PDF pages. The text is properly centered regardless of rotation angle.
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": {
"filePath": "<filePath>",
"outputPath": "<outputPath>",
"text": "<text>"
},
"name": "pdf_watermark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Watermark text (e.g. "CONFIDENTIAL", "DRAFT") | |
| color | No | Color — hex (#f00), short hex (#ff0000), or name (red, navy, etc). Default: #888888 | #888888 |
| pages | No | Pages to watermark (1-indexed). Omit for all. | |
| opacity | No | Opacity 0-1 (default: 0.15) | |
| filePath | Yes | PDF file path | |
| fontSize | No | Font size in points (default: 60) | |
| rotation | No | Rotation in degrees (default: 45) | |
| outputPath | Yes | Output path |