Sign a PDF
sign_pdfUse this when the user wants to sign a PDF, e-sign a document, add a signature, initials or a date to a PDF, or put their name on a signature line. It draws a visible mark on a copy of the user's PDF at found spots (ids from find_signature_spots) or at a page and position: a drawn signature (SVG path from the widget pad) or a typed name in an italic font, initials, a date in the chosen format from the user's date, or short text. It returns the signed copy as a download kept for about 1 hour and checks that each mark is in the file. It is not a certified digital signature: no certificate, identity check or audit trail. Does not fill form fields with data and does not send the document to anyone. Do not use for certificate-based digital signatures or for signing on someone else's behalf without their consent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The signing date in the user's own calendar, YYYY-MM-DD, e.g. 2026-11-04. Default: today in time_zone. | |
| file | Yes | The PDF to sign, e.g. lease.pdf. | |
| initials | No | Initials to use, e.g. JD. Default: first letters of signer_name. | |
| time_zone | No | The user's IANA time zone for today's date when no date is given, e.g. Europe/Berlin. Default America/New_York. | |
| placements | Yes | Where to put each mark, e.g. [{"spot":"s1","kind":"signature"},{"spot":"s2","kind":"date"}]. | |
| date_format | No | How the date is printed, e.g. MM/DD/YYYY (default). | |
| output_name | No | File name for the signed copy, e.g. lease-signed. Default: the original name plus -signed. | |
| signer_name | No | The signer's name, up to 80 characters, e.g. Jane Doe. Typed signatures are drawn in an italic font; also used for initials. | |
| flatten_form | No | true: also flatten the PDF's form fields so their current values print as page content. Default false. | |
| signature_svg | No | A drawn signature as SVG path data with absolute M, L, C, Q, Z only (max 20 KB), e.g. M10 40 C20 10 40 10 50 40. The widget pad sends this. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| note | Yes | ||
| marks | Yes | ||
| pages | Yes | ||
| warnings | Yes | ||
| date_used | No | ||
| downloads | Yes | ||
| flattened | Yes | ||
| text_found | Yes | ||
| marks_count | No | ||
| marks_found | Yes | ||
| text_expected | Yes |