pdf_add_watermark
Add text watermarks to PDF pages to mark documents as confidential, draft, or with custom labels. Specify pages, adjust font size, opacity, and rotation angle.
Instructions
Add a text watermark to all or specific pages of a PDF.
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": {
"file": "<file>",
"output": "<output>",
"text": "<text>"
},
"name": "pdf_add_watermark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the PDF file | |
| output | Yes | Output file path | |
| text | Yes | Watermark text (e.g. 'CONFIDENTIAL', 'DRAFT') | |
| fontSize | No | Font size (default: 50) | |
| opacity | No | Opacity 0-1 (default: 0.3) | |
| angle | No | Rotation angle in degrees (default: -45) | |
| pages | No | Specific pages (1-based). If omitted, applies to all pages. |