agent_sign_pdf
Sign PDF files with a qualified certificate using PAdES/CMS signature embedding. Provide file paths or directories; signed copies are created in the output directory, optionally with a visible signature box, using the certificate PIN.
Instructions
Sign one or many PDF files with the qualified certificate through the local Storno Agent (PAdES/CMS signature embedded in the PDF), e.g. declarations produced by DUKIntegrator, contracts, any document ANAF or a partner wants signed. Pass file paths and/or directories (all *.pdf inside); each signed copy is written next to the original as .signed.pdf (or into outDir). Requires the certificate PIN (pin, STORNO_AGENT_PIN, or the PIN remembered on this computer by the agent); the batch stops at the first PIN error to protect the token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | Token PIN; defaults to STORNO_AGENT_PIN, or to the PIN the agent remembers for this certificate | |
| files | Yes | PDF paths and/or directories | |
| outDir | No | Directory for the signed copies (default: next to each file) | |
| visible | No | Draw a visible signature box in the footer of the last page ("Semnat digital de …", date, issuer). Default: invisible signature (still verifiable in Adobe Reader / ANAF) | |
| signerName | No | Name shown in the visible box (default: the certificate subject) | |
| certificateId | Yes | Certificate id from agent_certificates |