Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 178

Previous Page 177   Index   Next Page 179

Function Reference
Page 178 of 770
Since DynaPDF must rebuild all content streams of the PDF file the flag coFlushPages can also
be set to reduce the memory usage during conversion. This flag can be set if a PDF file is larger
than 5 or 10 MB for example. For small PDF files the flag should be absent.
If the flag coFlushPages was set then a few objects must be written as indirect references. If you
want a perfectly organized PDF file then import the resuling PDF file again, set the PDF version
to pvPDFA_2b or 3b and save the file. The PDF version must be set because DynaPDF cannot
identify PDF/A files automatically during import since the version is stored in the global XMP
stream.
ZUGFeRD, ZUGFeRD 2.0, Factur-X
The only difference between PDF/A 3b and ZUGFeRD, ZUGFeRD 2.0, or Factur-X is that the file
must constain an embedded XML invoice. The embedded invoice must be named as follows (case-
sensitive and without quotes):
ZUGFeRD 1.0: "ZUGFeRD-invoice.xml"
ZUGFeRD 2.0: "zugferd-invoice.xml"
Factur-X:
"factur-x.xml"
The invoice can be attached with AttachFile() or AttachFileEx(). The embedded file must also be
associated with the global catalog object with AssociateEmbFile(). This step is optional. If the file was
not already associated with the catalog object then it will be associated automatically. However, if
set, the parameter Relationship must be set to arAlternative, arData, or arSource depending on the
output version:
Profile
Relationship
ctZUGFeRD_Basic
arAlternative
ctZUGFeRD_Comfort
arAlternative
ctZUGFeRD_Extended
arAlternative
ctZUGFeRD2_Minimum
arData or arSource
ctZUGFeRD2_Basic
arAlternative
ctZUGFeRD2_Basic_WL
arData or arSource
ctZUGFeRD2_Comfort
arAlternative
ctZUGFeRD2_Extended
arAlternative
ctFacturX_Minimum
arData or arSource
ctFacturX_Basic
arAlternative
ctFacturX_Basic_WL
arData or arSource
ctFacturX_Comfort
arAlternative
ctFacturX_Extended
arAlternative
CheckConformance() sets the relationship to arAlternate or arData for the MINIMUM and BASIC WL
profiles for ZUGFeRD 2.0 or Factur-X if it was not already set. If arSource should be used then call
AssociateEmbFile() for the emdedded file (the attached XML invoice).
If the embedded invoice cannot be found then a fatal error will be raised and no PDF file will be
created. If the file was found then the remaining settings will be applied if not already present.
 

Previous topic: PDF/A 1b:, PDF/A 2b or 3b

Next topic: Return values