ZUGFeRD-compliant electronic invoices
ZUGFeRD is a German standard dedicated to simplifying the processing of electronic invoices and to improving accounting efficiency. This standard deals with hybrid data about e-invoices combined into a single PDF that fully conforms to the PDF/A-3 standard (ISO 19005-3). Each ZUGFeRD-compliant PDF carries e-invoices in two formats:
- PDF format to visualize the e-invoice contents;
- XML format to extract and parse the relevant data from e-invoice by a machine.
ZUGFeRD-compliant PDF may also include spreadsheets, images, and other data related to a target e-invoice.
To create ZUGFeRD-compliant PDF with ABBYY FineReader Engine:
- Create a FRDocument object with the CreateFRDocument method.
- Add one or several pages of the target invoice to the created FRDocument using the AddImageFile method of the FRDocument object.
- Call the Process method of the FRDocument object.
Note: To learn more on how to process the documents with ABBYY FineReader Engine, see Tuning Parameters of Preprocessing, Analysis, Recognition, and Synthesis.
- Add the XML version of the invoice as an attachment to the created FRDocument using the PDFAttachment object.
- Create a PDFExportParams object with the CreatePDFExportParams method of the Engine object.
- Set the ZUGFeRD-specific parameters:
- ZUGFeRD compliance enabled: PDFExportFeatures::EnableZugferdCompliance must be set to TRUE;
- PDF/A-3 compliant document: PDFExportParams::PDFAComplianceMode must be set to PCM_Pdfa_3a, PCM_Pdfa_3b, or PCM_Pdfa_3u;
- Writing PDF attachments enabled: PDFExportFeatures::WriteSourceAttachments must be set to TRUE.
Note: See more useful information about fine-tuning the document export in Tuning Export Parameters.
- Save the ZUGFeRD-compliant PDF with the Export method of the FRDocument object.
To check the validity of the output, you may use the ZUGFeRD validation portal.
See also
Tuning Parameters of Page Preprocessing, Analysis, Recognition, and Synthesis
7/3/2024 8:50:10 AM