- PDF format to visualize the e-invoice contents;
- XML format to extract and parse the relevant data from e-invoice by a machine.
- 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.
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.
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.
