DynaPDF Manual - Page 733
Previous Page 732 Index Next Page 734
Page 733 of 821
const PPDF* IPDF,
// Instance pointer
TImportFlags2 Flags) // See below
typedef UI32 TImportFlags2;
0x00000001 // See description
0x00000002 // Replace LZW compression with Flate, apply limit
// checks, repair errors if possible
0x00000004 // Load streams on demand
0x00000008 // Ignore metadata streams attached on fonts, pages,
// images, and so on.
0x00000010 // Perform a duplicate check during PDF import. See
// description below.
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.
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.
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.
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.
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.
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