DynaPDF Manual - Page 172

Previous Page 171   Index   Next Page 173

Function Reference
Page 172 of 777
LBOOL pdfCheckCollection(
const PPDF* IPDF) // Instance pointer
The function checks whether user defined data fields in embedded files are consistently defined with
collection fields. User defined collection fields can be used to provide additional information relating
to embedded files. It is also possible to use such fields to sort the list of embedded files in an
arbitrary manner. However, the data types used in the embedded file specification must correspond
to the definition in the collection.
This function is especially useful to check the integrity of the file if multiple PDF collections were
merged into one file.
See also CreateCollection(), CreateCollectionField().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SI32 pdfCheckConformance(
const PPDF* IPDF,
// Instance pointer
TConformanceType Type,
// PDF Version to check
TCheckOptions Options,
// various options
const void* UserData,
// User defined pointer
TOnFontNotFoundProc* OnFontNotFound,
// Font replacement callback
TOnReplaceICCProfile* OnReplaceICCProfile) // ICC profile callback
typedef enum
ctPDFA_1b_2005, // Compatibility to PDF/A 1b 2005
// Normalization is useful for print workflows
// Convert the file to PDF/A 2b if possible
// Convert the file to PDF/A 3b if possible
/* The following constants convert the file to PDF/A 3b and set the whished ZUGFeRD, ZUGFeRD 2.0
* or Factur-X conformance level in the XMP metadata. CheckConformance() does not validate the XML
* invoice but it checks whether it is present. The embedded XML 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:
* Setting the correct ZUGFeRD or Factur-X conformance level is important since this value defines
* which fields must be present in the XML invoice.
// ZUGFeRD 1.0
// Basic profile
// Comfort profile
// Extended profile
// ZUGFeRD 2.0:
// Minimum profile
// Basic profile
ctZUGFeRD2_Basic_WL, // Basic WL profile

Previous topic: ChangeLinkAnnot, ChangeSeparationColor

Next topic: Notice