pdf_add_watermark
Add text watermarks to PDF documents with customizable placement, opacity, and rotation to protect content or mark documents as drafts.
Instructions
Add a text watermark to PDF pages. Watermark is centered and rotated diagonally by default. Applies to all pages if no page range is specified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source PDF file | |
| text | Yes | Watermark text to overlay on pages | |
| outputPath | Yes | Absolute path for the watermarked output PDF | |
| pages | No | Page range, e.g. '1-5' or '1,3,5'. Omit to watermark all pages. | |
| opacity | No | Watermark opacity (0.0–1.0). Defaults to 0.3. | |
| fontSize | No | Watermark font size (10–200). Defaults to 50. | |
| color | No | Watermark color. Defaults to gray. | |
| rotation | No | Watermark rotation in degrees (0–360). Defaults to 45 (diagonal). |