DynaPDF Manual - Page 704

Previous Page 703   Index   Next Page 705

Function Reference
Page 704 of 787
deleted with FreePDF() after the fonts were enumerated. See
EnumDocFonts() for further information.
ifAllPageObjects
If set, all types of link annotations are imported when importing a page
within an open page with ImportPageEx(). The entire document should
be imported in this case.
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.
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
 

Previous topic: SetIconColor, SetImportFlags

Next topic: SetItalicAngle

Start Chat