DynaPDF Manual - Page 766

Previous Page 765   Index   Next Page 767

Function Reference
Page 766 of 821
Factur-X constants can be used to create Factur-X and ZUGFeRD 2.1 or higher files. The PDF
container cannot distiguish between these formats.
ZUGFeRD and Factur-X invoices require an embedded XML invoice. The XML file can be attached
with AttachFile() or AttachFileEx().
The XML invoice must be named as follows (case-sensitive and without quotes):
ZUGFeRD 1.0:
ZUGFeRD 2.0:
ZUGFeRD 2.1 or higher:
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
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.

Previous topic: ZUGFeRD, ZUGFeRD 2.0, Factur-X / ZUGFeRD 2.1/2.2, ZUGFeRD 2.1 or higher

Next topic: SetPrintSettings, SetProgressProc