Electronic invoices in ZUGFeRD and Factur-X standards in Stimulsoft products
Electronic invoices have long become an integral part of digital document workflows across many sectors, including business, government, accounting, and more. Both large enterprises and small companies are fully transitioning to electronic invoicing for a number of reasons, including cost reduction, accelerated business processes, and many others. In recent years, many countries have introduced legislation mandating the use of electronic invoicing, such as EU Directive 2014/55.Electronic invoice formats
The most common electronic invoice formats include ZUGFeRD and Factur-X.ZUGFeRD
The ZUGFeRD format is used to create electronic documents in German-speaking countries and combines machine-readable XML data with a PDF format to present the information in a human-readable way.Factur-X
The French counterpart of the German format is Factur-X. This electronic invoice format is technically identical to ZUGFeRD and fully compatible with it.Creating electronic invoices in ZUGFeRD format
Stimulsoft components support the creation of ZUGFeRD invoices in all current versions — 2.1, 2.2, and 2.3. The workflow is as follows: prepared XML data is loaded into the report generator, which builds the visual part. The resulting report is then exported to a PDF file.After loading the report template, you need to define the following properties in code:
- ZUGFeRDComplianceMode, which specifies the format version (V1, V2, V2_1);
- ZUGFeRDConformanceLevel, which sets the required conformance level;
- ZUGFeRDInvoiceData, which applies the XML file containing the invoice data.
Code example
Below is a code example for exporting an electronic invoice in ZUGFeRD 2.1 / Factur-X format with custom settings:

