Xojo Conferences
MBSOct2019CologneDE
XDCMarch2020NashvilleUS

DynaPDF Manual - Page 171

Previous Page 170   Index   Next Page 172

Function Reference
Page 171 of 770
CheckCollection
Syntax:
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.
CheckConformance
Syntax:
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
ctNormalize,
// Normalization is useful for print workflows
ctPDFA_2b,
// Convert the file to PDF/A 2b if possible
ctPDFA_3b,
// 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:
"factur-x.xml"
*
* 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
ctZUGFeRD_Basic,
// Basic profile
ctZUGFeRD_Comfort,
// Comfort profile
ctZUGFeRD_Extended,
// Extended profile
// ZUGFeRD 2.0:
ctZUGFeRD2_Minimum,
// Minimum profile
ctZUGFeRD2_Basic,
// Basic profile
ctZUGFeRD2_Basic_WL, // Basic WL profile
 

Previous topic: ChangeLinkAnnot, ChangeSeparationColor

Next topic: Notice