Prepare signature placeholder
prepare_signature_placeholderGenerate a PDF with an embedded signature AcroForm placeholder for later digital signing. Use when you need to customize the placeholder size, attach to a specific page, or precompute the placeholder PDF separately.
Instructions
Create a PDF with an embedded /Sig AcroForm placeholder ready to be digitally signed by the sign_pdf tool. NOTE: as of v1.0.0, sign_pdf auto-injects a placeholder when missing (autoInjectPlaceholder defaults to true), so this tool is OPTIONAL. Use it only when you need to: (a) customize the placeholder size for >4096-bit RSA keys via placeholderBytes, (b) attach the signature widget to a specific page via pageIndex, or (c) precompute and ship the placeholder PDF separately from the signing step. Otherwise call sign_pdf directly with any PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title. Used as the PDF metadata title and rendered at the top of page 1. | |
| signerName | No | Name of the intended signer, embedded in the /Sig dictionary. | |
| reason | No | Reason for signing (e.g. "Approved", "I agree to the terms"). | |
| location | No | Signing location (city / country). | |
| contactInfo | No | Contact information for the signer. | |
| fieldName | No | Optional AcroForm field name for the signature widget (default 'Signature1'). | |
| placeholderBytes | No | Reserved bytes for the future CMS /Contents blob (default 16384). Increase only for >4096-bit RSA or PAdES-B-LT. | |
| pageIndex | No | Zero-based page index the (invisible) widget attaches to (default 0). | |
| pdfA | No | Optional PDF/A conformance level (powered by pdfnative v1.2). Use 'pdfa1b' for archival of simple text+images, 'pdfa2b'/'pdfa2u' for richer content (2u guarantees Unicode mapping), 'pdfa3b' when embedding source attachments (Factur-X / ZUGFeRD). Mutually exclusive with PDF encryption. See docs/guides/PDFA.md. Note: PDF/A + signatures requires PAdES-A; verify with inspect_pdf. | |
| blocks | No | Optional document body blocks rendered before the signature field. | |
| outputMode | No | Either 'base64' (returns the PDF inline) or 'file' (writes to a sandboxed path inside PDFNATIVE_MCP_OUTPUT_DIR). | base64 |
| outputPath | No | Required when outputMode='file'. Relative path inside the sandbox; must end with .pdf. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| sizeBytes | Yes | ||
| filePath | No | Absolute sandboxed file path (when mode='file'). | |
| base64 | No | Base64-encoded PDF bytes (when mode='base64'). |