Embed Factur-X XML into a PDF
embed_xmlCombine a visual PDF you already have with a Factur-X (CII) XML into one PDF/A-3 Factur-X invoice.
Use when the PDF is produced by your own system and you only need the compliant hybrid file. Do not use
to create an invoice from data: call generate_invoice, which renders the PDF too. The XML is validated
first and rejected with rule ids if it fails. Nothing is stored. Returns a text summary plus the PDF/A-3
as a base64 embedded resource.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Factur-X / CII XML text for the same invoice; must pass the `check` rules or the tool fails | |
| check | No | Rule set the XML must pass before embedding: fr-ctc (default, France) or base (EN 16931 only) | fr-ctc |
| language | No | Document language written in the PDF metadata: fr or en | fr |
| pdf_base64 | Yes | Your existing visual invoice PDF (any PDF, will be converted to PDF/A-3), base64 encoded |