Sign PDF with an image
pdf_sign_imagePlace a signature, initials, stamp, or logo image on selected PDF pages at precise positions, with optional text marks and automatic removal of light paper backgrounds.
Instructions
Place a signature (or initials, stamp, logo) image on PDF pages at x/y/width in points, measured from the top-left of the page as it is shown (rotated pages are handled). A light paper background is removed by default so scanned signatures sit cleanly on the page. Optional text marks (name, date…) can be added too. This is a visual signature, not a cryptographic digital signature. To draw a signature by hand, use the web version: https://s3eidat.github.io/pdf-sign/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left edge in points from the left of the page (72 pt = 1 inch). Default 72. | |
| y | No | Top edge in points from the TOP of the page. Default: 72 pt above the bottom margin. | |
| file | Yes | The PDF: a local file path (absolute, or relative to the server's --root) or base64 data (raw or a data: URI). | |
| pages | No | Pages to sign: "last" (default), "1", "all", "1-3"… | last |
| texts | No | Optional text marks, e.g. the printed name or the date. | |
| width | No | Width in points. Default 150 (about 5.3 cm). | |
| height | No | Height in points. Default: keeps the image aspect ratio. | |
| output | No | Where to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set). | |
| signature | No | Signature image: local path or base64 (PNG, JPEG, WebP…). | |
| threshold | No | Brightness (0-255) above which pixels become transparent. Default 210. | |
| returnBase64 | No | Also return the output as base64 in the result (only for small files). Default false. | |
| removeBackground | No | Make light (paper) pixels transparent and trim to the ink. Default true. |