DynaPDF Manual - Page 195

Previous Page 194   Index   Next Page 196

Function Reference
Page 195 of 839
// color space due to implicit color conversion rules.
#define coMakeLayerVisible
0x00004000 // PDF/A 2 and 3 prohibit invisible layers.
#define coDeleteAppEvents
0x00008000 // PDF/A 2 and 3. Application events are prohibited in
// PDF/A. The view state will be applied.
#define coReplCCITTFaxWithFlate
0x00010000 // Imported files only
#define coApplyExportState
0x00020000 // Meaningful only if coDeleteAppEvents is set. Apply
// the export state.
#define coApplyPrintState
0x00040000 // Meaningful only if coDeleteAppEvents is set. Apply
// the print state.
#define coDeleteReplies
0x00080000 // Delete annotation replies. If absent, replies will be
// converted to regular text annotations.
#define coDeleteHalftones
0x00100000 // Delete halftone screens.
#define coFlattenLayers
0x00200000 // PDF/A 1b only. Flatten layers if any.
#define coDeletePresentation
0x00400000 // Presentations are prohibited in PDF/A 2 and 3.
#define coCheckImages
0x00800000 // Images will be decompressed to identify damages.
#define coDeleteDamagedImages
0x01000000 // Meaningful only if coCheckImages is set.
#define coRepairDamagedImages
0x02000000 // Meaningful only if coCheckImages is set. If set, try
// to recompress a damaged image. The new image is maybe
// incomplete but error free. This flag can be combined
// with coDeleteDamagedImages to delete the image if
// recompression fails.
#define coNoFontEmbedding
0x10000000 // Normalization only
#define coFlushPages
0x20000000 // Write converted pages directly into the output file
// to reduce the memory usage.
#define coAllowDeviceSpaces
0x40000000 // If set, device color spaces will not be replaced with
// ICC based color spaces. This flag is meaningful for
// normalization only.
#define coResetAnnotAppearance
0x80000000 // If set, appearance streams of annotations are rebuild
// before executing CheckConformance().
// Common default flags for normalization.
#define coDefault_Normalize (coAllowDeviceSpaces | coNoFontEmbedding)
// Common default flags for different PDF/A versions:
#define coDefault_PDFA_1
(coDefault | coFlattenLayers)
#define coDefault_PDFA_2
(coDefault | coDeletePresentation)
#define coDefault_PDFA_3
(coDefault_PDFA_2 & ~coDeleteEmbeddedFiles)
#define coDefault_PDFA_4
(coDefault_PDFA_2 & ~coDeleteEmbeddedFiles)
typedef SI32 PDF_CALL TOnFontNotFoundProc(
const void* Data,
// Pointer UserData of CheckConformance
const void* PDFFont,
// PDF font handle
const char* FontName, // PostScript name of the font
SI32 Style,
// Font style
SI32 StdFontIndex,
// Standard font index
LBOOL IsSymbolFont);
// Set to 1 if the font is a symbol font
typedef SI32 PDF_CALL TOnReplaceICCProfile(
const void* Data,
// Pointer UserData of CheckConformance
TICCProfileType Type, // Required ICC profile type to be embedded
SI32 ColorSpace);
// Color space handle
typedef enum
ictGray = 0,
= 1,
ictCMYK = 2,
= 3
The function converts a PDF file to a specific PDF standard according to the parameter Type.
The regular DynaPDF versions contain a restricted version of CheckConformance() which cannot be
used if one or more pages from external PDF files were imported.
The conversion of arbitrary imported PDF files requires a separate license of the PDF/A Extension.

Previous topic: ChangeSeparationColor, CheckCollection, CheckConformance

Next topic: Notice, Important callback functions, OnFontNotFound, OnReplaceICCProfile