declaration_pdf
Generates ANAF-accepted PDFs from validated declaration XML, embedding XML and optional attachments for upload or local saving.
Instructions
Produce the PDF ANAF accepts for upload: DUKIntegrator renders the validated XML into ANAF's PDF form with the XML embedded and, where required (C168), a zip of attachments embedded (the scanned contract for a registration, the addendum for an amendment, the termination document or the landlord's sworn statement — document_generate — for a termination). Pass local file paths in attachmentPaths and/or base64 attachments (PDF, JPG, PNG, TIFF; 10 MB total). With outFile the PDF is written locally, ready for agent_submit_declaration_pdf (qualified certificate) or manual upload in SPV. Public, nothing stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The validated declaration XML from declaration_build | |
| type | Yes | Form code, e.g. C168 | |
| outFile | No | Path where the PDF is written; when omitted the response carries pdfBase64 | |
| attachments | No | ||
| attachmentPaths | No | Local files to put in the zip |