DynaPDF Manual - Page 749

Previous Page 748   Index   Next Page 750

Function Reference
Page 749 of 839
SetImportFlags2
Syntax:
LBOOL pdfSetImportFlags2(
const PPDF* IPDF,
// Instance pointer
TImportFlags2 Flags) // See below
typedef UI32 TImportFlags2;
#define if2MergeLayers
0x00000001 // See description
#define if2Normalize
0x00000002 // Replace LZW compression with Flate, apply limit
// checks, repair errors if possible
#define if2UseProxy
0x00000004 // Load streams on demand
#define if2NoMetadata
0x00000008 // Ignore metadata streams attached on fonts, pages,
// images, and so on.
#define if2DuplicateCheck
0x00000010 // Perform a duplicate check during PDF import. See
// description below.
#define if2NoResNameCheck
0x00000020 // Useful in viewer applications
#define if2CopyEncryptDict 0x00000040 // If set, the encryption settings of an encrypted
// PDF file are copied to the new PDF file. The flag
// does nothing if the file is not encrypted.
#define if2SkipDPartData
0x00000080 // If set, DPart dictionaries are not imported.
The function sets optional flags to control the import of external PDF files. The flags are defined as a
bit-mask; multiple flags can be combined by using a bitwise or operator.
This function cannot fail; the return value is always 1.
Flag
Description
if2MergeLayers
If set, layers of different PDF files with the same name are merged. That
means the layer names in the same hierarchy will be unique. A merged
layer controls the visibility of layers from different imported PDF files.
If the flag is absent (default) it is possible that the same layer name
occurs multiple times in the same hierarchy.
if2Normalize
This flag must be set if the file should be normalized with
CheckConformance(). The flag enables additional limit checks, LZW
compression will be replaced with Flate, and further repairs are applied
which are not enabled by default.
If2UseProxy
If set, stream objects are not loaded into memory to reduce the memory
usage. This makes it possible to import PDF files of almost arbitrary size
with minimal memory usage. Nothing special must be considered if
this flag is set. It is also allowed to call CloseImportFile() after the
wished pages were imported. The file is automatically opened again
when streams must be loaded.
PDF files which were loaded in this way must not be deleted before the
new PDF file in memory was closed.
if2NoMetadata
If set, metadata streams which are attached to fonts, images, pages,
templates, and so on will not be imported.
 

Previous topic: SetImportFlags

Next topic: SetItalicAngle