Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 170

Previous Page 169   Index   Next Page 171

Function Reference
Page 170 of 766
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 wished ZUGFeRD
// conformance level in the XMP metadata. CheckConformance() does not validate the XML
// invoice but it checks whether it is present. Setting the correct ZUGFeRD conformance
// level is very important since this value defines which fields must be present in the
// XML invoice.
ctZUGFeRD_Basic,
// Set the ZUGFeRD conformance level to Basic
ctZUGFeRD_Comfort, // Set the ZUGFeRD conformance level to Comfort
ctZUGFeRD_Extended // Set the ZUGFeRD conformance level to Extended
}TConformanceType;
typedef UI32 TCheckOptions;
#define coDefault
0x0010FFFF // Default flags
#define coEmbedSubsets
0x00000001 // Already done, does nothing (obsolete)
#define coDeleteTransferFuncs
0x00000002 // Imported files only
#define coDeleteMultiMediaContents 0x00000004 // Imported files only
#define coDeleteActionsAndScripts
0x00000008 // Imported files only
#define coDeleteInvRenderingIntent 0x00000010 // Imported files only
#define coFlattenFormFields
0x00000020 // Flatten form fields
#define coReplaceV4ICCProfiles
0x00000040 // Imported files only
#define coDeleteEmbeddedFiles
0x00000080 // Imported files only
 

Previous topic: ChangeSeparationColor

Next topic: OnFontNotFound