Hybrid invoice
Create a ZUGFeRD invoice
Generate the human-readable invoice and inspect the machine-readable XML embedded in the PDF/A result.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Combine a visual invoice with structured data
ZUGFeRD invoices are hybrid documents: people read the PDF representation while accounting systems process the embedded XML invoice.
This sample merges invoice data into a visual template, creates standards-oriented invoice XML, embeds it as an alternative representation, and exports the result as PDF/A.
API used
SaveSettings.EmbeddedFiles
How it works
The controller builds one invoice model, uses it for both mail merge and XML generation, attaches ZUGFeRD-invoice.xml through SaveSettings.EmbeddedFiles, and exports an Adobe PDF/A document.
Source files
See the implementation
The complete demo is encapsulated in Demos/Pdf/CreatingPdfs/ZugferdInvoice.