declaration_pdf
Renders validated declaration XML into ANAF's upload-ready PDF, embedding the XML and required attachment zip (e.g., C168), so you can submit or upload it in SPV.
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.
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": {
"type": "<type>",
"xml": "<xml>"
},
"name": "declaration_pdf"
}
}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 |