Function Reference
Page 783 of 839
The XML invoice must be named as follows (case-sensitive and without quotes):
• ZUGFeRD 1.0:
"ZUGFeRD-invoice.xml"
• ZUGFeRD 2.0:
"zugferd-invoice.xml"
• ZUGFeRD 2.1 or higher:
"factur-x.xml"
• Factur-X:
"factur-x.xml"
The embedded invoice must also be associated with the Catalog object. This can be done with
AssociateEmbFile(). The parameter RelationShip must be set to arAlternate, arData, or arSource
depending on the used Factur-X or ZUGFeRD profile. See CheckConformance() for further
information.
Examples:
pdfSetPDFVersion(pdf, pvZUGFeRD_Basic);
// ZUGFeRD 1.0
pdfSetPDFVersion(pdf, TPDFVersion(pvFacturX_Basic_WL | pvZUGFeRD2_Flag)); // ZUGFeRD 2.0
pdfSetPDFVersion(pdf, pvFacturX_Basic_WL);
// ZUGFeRD 2.1 or Factur-X
pdfSetPDFVersion(pdf, pvFacturX_XRechnung);
// XRechnung
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.