Stimulsoft Company has added support for the format of electronic invoices – ZUGFeRD.

Invoices in the ZUGFeRD format pass both human-readable invoices and its structured machine-readable XML based representation. Human-readable representation is encoded in the form of one or more PDF pages of the PDF/A format. XML based representation is embedded in the PDF document as an object in accordance with the specifications of the PDF/A-3 format. In other words, the invoice of the ZUGFeRD format contains two separate representations – human-readable in the PDF/A-3 format that is used as a container for the XML representation.

Currently, the ZUGFeRD format can be used only from code. To do this, enable the ZUGFeRDCompliance option in the PDF export settings (this will enable the PDF/A-3 format and add the necessary meta information). Also this will add the XML file (prepared previously) in the collection of EmbeddedFiles. Please note that the XML file name must be "ZUGFeRD-invoice.xml".
Below is an example of code to export a report using the ZUGFeRD format:
FileStream fileStream = new FileStream(@"d:\test.pdf", FileMode.Create);

byte[] buf = File.ReadAllBytes(@"d:\ZUGFeRD-invoice.xml");

StiPdfExportSettings pdfExportSettings = new StiPdfExportSettings();
pdfExportSettings.EmbeddedFiles.Add(new StiPdfEmbeddedFileData("ZUGFeRD-invoice.xml", "ZUGFeRD Rechnung", buf));
pdfExportSettings.ZUGFeRDCompliance = true;

report.ExportDocument(StiExportFormat.Pdf, fileStream, pdfExportSettings);