magic_convert_pdf
Convert Base64-encoded flat legacy PDF invoices up to five pages into ZUGFeRD 2.5 PDF/A-3b with EN16931 or XRechnung profiles, strict decimal math, and IBAN MOD-97 checks.
Instructions
Convert a flat legacy PDF (Base64, max 5 pages) into a ZUGFeRD 2.5 PDF/A-3b under strict BigDecimal Math & ISO 13616 MOD-97 IBAN guardrails.
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": {
"pdfBase64": "<pdfBase64>"
},
"name": "magic_convert_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | EN16931 | |
| pdfBase64 | Yes | Base64-encoded legacy PDF invoice | |
| stampGiroCode | No |