stamp_pdf
Apply a diagonal, semi-transparent watermark or status stamp such as CONFIDENTIAL or DRAFT to every page of an existing vector PDF for clear labeling and document control.
Instructions
Applies a diagonal semi-transparent watermark or status stamp (e.g. "CONFIDENTIAL", "DRAFT", "PROPRIETARY") across all pages of an existing vector PDF using pdf-lib.
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": {
"pdf_base64": "<pdf_base64>",
"watermark_text": "<watermark_text>"
},
"name": "stamp_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Watermark color: "red", "gray", or "blue" (default: "red") | red |
| opacity | No | Watermark opacity from 0.05 (subtle) to 0.5 (prominent) - default: 0.15 | |
| font_size | No | Font size of watermark text in points (default: 54) | |
| pdf_base64 | Yes | Base64-encoded PDF string (e.g. output from render_pdf or render_template) | |
| watermark_text | Yes | Watermark text to stamp diagonally across each page (e.g. "CONFIDENTIAL", "DRAFT", "PROPRIETARY") |