Factur-X
Turns existing PDFs into Factur-X / ZUGFeRD e-invoices: embeds the CII invoice XML under the canonical factur-x.xml name with the Alternative relationship, injects the Factur-X XMP metadata, and converts the PDF to PDF/A-3, the only PDF/A family that allows embedded files.
When every input already carries PDF/A-3 identification, the files are left untouched; otherwise the whole request converts to PDF/A-3b, or to the PDF/A-3 variant requested with pdfa. Requires a PDF engine that supports the feature (QPDF by default).
The Chromium and LibreOffice conversion routes accept the same form fields, so a single request can turn HTML or an office document into a compliant e-invoice.
See the PDF Engines module configuration for engine selection flags.
INVOICE1.0falsecurl \
--request POST http://localhost:3000/forms/pdfengines/factur-x \
--form files=@/path/to/invoice.pdf \
--form facturxXml=@/path/to/factur-x.xml \
--form 'facturxConformanceLevel=EN 16931' \
-o my.pdf
- 200
- 400
- 503
Content-Disposition: attachment; filename={output-filename.ext}
Content-Type: {content-type}
Content-Length: {content-length}
Gotenberg-Trace: {trace}
Body: {output-file}
Content-Type: text/plain; charset=UTF-8
Gotenberg-Trace: {trace}
Body: {error}
Content-Type: text/plain; charset=UTF-8
Gotenberg-Trace: {trace}
Body: {error}


