DynaPDF Manual - Page 182

Previous Page 181   Index   Next Page 183

Function Reference
Page 182 of 787
Annotation replies are still prohibited (see SetAnnotMigrationState() for further
information).
PDF/A files cannot be encrypted. The usage of CloseFileEx() or CloseAndSignFileEx() is not
allowed.
PDF/A 3b: Embedded files must be associated with a PDF object. See AssociateEmbFile() for
further information.
It is strongly recommended to set the import flag if2UseProxy with SetImportFlags2() to reduce
the memory usage when importing PDF files.
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 / ZUGFeRD 2.1, XRechnung
The only difference between PDF/A 3b and ZUGFeRD, ZUGFeRD 2.0, or Factur-X and ZUGFeRD
2.1 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 / ZUGFeRD 2.1:
"factur-x.xml"
XRechnung:
"xrechnung.xml"
Note that ZUGFeRD 2.1 and Factur-X are indentically defined in PDF. Therefore, both formats share
the same version constants!
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
 

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

Next topic: Return values

Start Chat