watermark_pdf
Apply a text or image watermark to a PDF document. Supports custom text, fonts, opacity, rotation, and positioning.
Instructions
Apply a text or image watermark to a PDF. For type='text' provide 'text'; for type='image' provide 'watermarkImagePath'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | Standard PDF font name | |
| text | No | Watermark text (required when type='text') | |
| type | Yes | Watermark type | |
| rotate | No | Rotation in degrees (0–360) | |
| opacity | No | Opacity 0–1 | |
| fontSize | No | Font size in points | |
| metadata | No | Custom metadata to attach | |
| fontColor | No | Font colour as hex e.g. '#FF0000' | |
| xPosition | No | Horizontal position | |
| yPosition | No | Vertical position | |
| documentId | Yes | The source document ID | |
| imageWidth | No | Image watermark width | |
| imageHeight | No | Image watermark height | |
| fontFilePath | No | Local path to a .ttf/.otf font file (overrides 'font') | |
| watermarkImagePath | No | Local path to a .png/.jpg watermark image (required when type='image') | |
| preSignedUrlExpiresIn | No | Pre-signed download URL expiry in seconds (60–86400) |