Sign a PDF with a PNG signature
sign_pdfStamp a PNG signature image onto one or more PDF pages at given positions (fractions of the page, x and y measured from the top-left, width as a fraction of page width). The signature keeps its aspect ratio. Returns the signed PDF as base64.
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": {
"file": "<file>",
"signature": "<signature>",
"placements": "<placements>"
},
"name": "sign_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF to sign. | |
| signature | Yes | The signature as a PNG image, base64 or a public URL. | |
| placements | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Signed PDF as base64. | |
| bytes | Yes | ||
| pageCount | Yes |