Stamp text on a PDF
pdf_stampStamp any PDF with PAID, DRAFT, or custom text in a chosen color and position. Writes a new file, leaving the original untouched.
Instructions
Call this tool to draw a word such as PAID or DRAFT across the pages, in a colour and position you choose. Writes a new file; input untouched. Free tier: the PAID and DRAFT presets in their preset colours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The source PDF | |
| text | Yes | What to stamp. PAID and DRAFT are presets with their own colour; any other text is Pro | |
| color | No | Hex code such as #1b7f3b, or a name: red, green, blue, black, gray, orange, purple. Pro | |
| pages | No | Which pages to stamp, e.g. "1" or "2,4-6". Omit for every page | |
| opacity | No | 0 to 1. Default 0.35 in the centre, 0.85 in a corner | |
| out_path | Yes | Where to write the stamped PDF | |
| position | No | Where on the page. Default center, which is drawn on the 45-degree diagonal like a real stamp | |
| font_size | No | Point size. By default the stamp is sized to fit the page width | |
| overwrite | No | Replace out_path if it exists. Default false |