Watermark PDF
watermark_pdfStamp text (Latin characters) or a PNG/JPEG image onto a PDF's pages: centred and diagonal, tiled, or in a corner. Uses one render.
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>"
},
"name": "watermark_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF to watermark. | |
| text | No | Watermark text, up to 5 lines. | |
| color | No | Hex text color, e.g. #c8155f. | |
| image | No | PNG or JPEG image instead of text. | |
| pages | No | Pages like "1-3,5,8-" or "last". Ranges can run backwards ("last-1") to reverse order. | |
| opacity | No | ||
| position | No | ||
| rotation | No | Degrees. Defaults to the page diagonal for center and tile. |