News combit Dev Blog

Supporting ZUGFeRD 2.0 in PDF Export

Posted: Monday, October 21, 2019 | 0 comment(s)
 
Version 1.0 of the electronic invoice data format ZUGFeRD for the exchange of invoices has already been supported. For List & Label 25, the specification of version 2.0, officially released in March 2019, is now also supported.

Update: With the release of the Service Pack 25.002 List & Label now also supports ZUGFeRD Version 2.1, analogous to Version 2.0.


With the help of the ZUGFeRD standard, the electronic exchange of invoices between consumers, public administrations and companies can be greatly simplified, as the invoice data is made available in hybrid form. On the one hand the invoice data is provided as an unchangeable PDF document with the PDF/A-3 standard as a visual component, on the other hand as a structured XML file with the XML invoice data for further technical processing. 



The specification for ZUGFeRD 2.0 was officially released for Germany in March 2019 and is based on the French Factur-X 1.0 standard, so that both implementations are technically identical and ensure a uniform standard for invoice exchange at European level.

 

Compared to the ZUGFeRD 1.0 standard, however, there is a decisive difference with regard to licensing. The committee decided to place the new standard under Apache 2.0 licensing, which could not be reconciled with the previously simplified deployment of List & Label.

Therefore, we decided to outsource the ZUGFeRD 2.0 support into a separate module. Thus, an application with List & Label does not have to be redistributed under the Apache 2.0 license, if no ZUGFeRD 2.0 is used. Of course, the module is available as both a 32- and 64-bit build.
The new modules c[m/x]LL25xl_zugferd2.dll are located in the directory "..\Miscellaneous\Optional Modules Under OSI Licenses\ZUGFeRD\". There you will also find the Apache 2.0 licensing in the form of the file "license.txt".

All you have to do is add these two modules (depending on the bitness of the application) to the deployment package of List & Label - which, by the way, can also be easily done with the Redistribution Assistant. Of course, you should read the Apache 2.0 license carefully before redistributing it.

What still needs to be provided by the application itself is the raw data of the invoice in XML format for integration into the PDF document. A PDF export with ZUGFeRD 2.0 could look like this:

// create export configuration
ExportConfiguration exportConfiguration = new ExportConfiguration(LlExportTarget.Pdf, "Export.pdf", "invoice.lst");
 
// define ZUGFeRD 2.0 options
LL.ExportOptions.Add(LlExportOption.PdfZUGFeRDVersion, "2.0");
LL.ExportOptions.Add(LlExportOption.PdfZUGFeRDConformanceLevel, "EXTENDED");
LL.ExportOptions.Add(LlExportOption.PdfZUGFeRDXmlPath, "ZUGFeRD-invoice.xml");
 
// start export
LL.Export(exportConfiguration);

What is new here is the export option LlExportOption.PdfZUGFeRDVersion, with which you can specifically determine the ZUGFeRD version. List & Label can still meet the specification 1.0 and is therefore fully downward compatible. A small excerpt from the documentation:

Value Meaning
0 The specified file 'zugferd-invoice.xml' (see also PDF.ZUGFeRDXmlPath) is checked  against the ZUGFeRD 1.0 or 2.0 format. Afterwards, the format determined in that way is  used. If the format cannot be determined, e.g. because the file 'zugferd-invoice.xml' does not yet exist at this time, ZUGFeRD 2.0 is assumed.
1.0 ZUGFeRD version 1.0 is forced.
2.0 ZUGFeRD version 2.0 is forced.
Default 0













Learn more about the many new highlights of List & Label 25.




Author: Daniel Stein
Consultant, Development & Cooperations

Daniel trained with combit as a programmer specialized in software development. He is now engaged in software development and fosters business cooperations. He conducts software trainings and supports the sales team as technical advisor. In his spare time he enjoys mountainbiking around Lake Constance and in the Swiss Alps closeby.


 

RSS
combit Development BlogRSS
What’s this blog for?
A place to share updates about the ongoing development of our products. General musings on the software industry included.
Archive
April 2021 (1)
March 2021 (1)
February 2021 (2)
January 2021 (1)
December 2020 (2)
November 2020 (1)
October 2020 (2)
September 2020 (1)
August 2020 (2)
July 2020 (1)
June 2020 (1)
May 2020 (2)
April 2020 (2)
March 2020 (2)
February 2020 (1)
January 2020 (1)
December 2019 (1)
November 2019 (2)
October 2019 (2)
September 2019 (2)
August 2019 (2)
July 2019 (2)
June 2019 (2)
May 2019 (1)
April 2019 (0)
April 2019 (1)
March 2019 (1)
February 2019 (1)
January 2019 (1)
December 2018 (1)
November 2018 (2)
October 2018 (4)
September 2018 (4)
August 2018 (2)
July 2018 (2)
June 2018 (2)
May 2018 (1)
April 2018 (1)
March 2018 (1)
February 2018 (2)
January 2018 (1)
December 2017 (1)
November 2017 (2)
October 2017 (3)
September 2017 (3)
August 2017 (2)
July 2017 (2)
June 2017 (1)
May 2017 (2)
April 2017 (1)
March 2017 (1)
February 2017 (1)
January 2017 (2)
December 2016 (1)
November 2016 (1)
October 2016 (4)
September 2016 (5)
August 2016 (2)
July 2016 (2)
June 2016 (3)
May 2016 (2)
April 2016 (3)
March 2016 (3)
February 2016 (1)
January 2016 (2)
December 2015 (2)
November 2015 (1)
October 2015 (4)
September 2015 (5)
August 2015 (2)
July 2015 (2)
June 2015 (2)
May 2015 (1)
April 2015 (2)
March 2015 (1)
February 2015 (1)
January 2015 (1)
December 2014 (2)
November 2014 (1)
October 2014 (1)
September 2014 (2)
August 2014 (1)
July 2014 (2)
June 2014 (1)
May 2014 (2)
April 2014 (1)
March 2014 (2)
+1 800 256 3608 (toll-free North America only)