Add watermark to PDF
watermark_pdfStamp a diagonal text watermark on every page of a PDF. Files are processed on HuntPDF servers and deleted automatically; the download link is temporary.
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": {
"text": "<text>"
},
"name": "watermark_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Watermark text, e.g. CONFIDENTIAL | |
| opacity | No | 0.1-1, default 0.3 | |
| file_url | No | Public https:// link to the file (preferred, up to 150 MB). Must be directly downloadable. | |
| filename | No | Original file name, e.g. report.pdf | |
| font_size | No | 20-200, default 60 | |
| file_base64 | No | The file content as base64 (only for small files, max 10 MB). Use instead of file_url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| file_name | Yes | ||
| download_url | Yes | Link to download the result | |
| expires_in_minutes | Yes | The link stops working after this time (or 3 minutes after the first download) |