DynaPDF Manual - Page 440
Previous Page 439 Index Next Page 441
Function Reference
Page 440 of 839
GetInPrintSettings
Syntax:
LBOOL pdfGetInPrintSettings(
const PPDF* IPDF,
struct TPDFPrintSettings* Settings)
struct TPDFPrintSettings
{
TDuplexMode DuplexMode;
// See below
SI32 NumCopies;
// -1 means not set. The maximum value is 5
SI32 PickTrayByPDFSize;
// -1 means not set. 0 == false, 1 == true
// If set, the array contains PrintRangesCount * 2 values. Each pair
// consists of the first and last page of the sub-range. The first page in
// the PDF file is denoted by 0.
UI32*
PrintRanges;
UI32
PrintRangesCount;
// Number of ranges
TPrintScaling PrintScaling;
// psNone means not set
/* 9 reserved fields follow*/
};
typedef enum
{
dpmNone,
// Use the default value of the viewer
dpmSimplex,
dpmFlipShortEdge,
dpmFlipLongEdge
}TDuplexMode;
The function retrieves the print settings of the current open import file. The PDF file must be opened
with OpenImportFile() or OpenImporBuffer() before the function can be used. The print settings are
used to initialize the print dialog in a viewer application. See also SetPrintSettings().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetInRepairMode
Syntax:
LBOOL pdfGetInRepairMode(
const PPDF* IPDF) // Instance pointer
This function can be used to determine whether the current open import file was opened in repair or
normal mode. When a PDF file was loaded in normal mode and if it contains damages which were
not recognized when opening the file, e.g. if it is not possible to load one or more pages of it, then it
is possible to load the file explicitely in repair mode to repair the damages. Not all damages can be
repaired but DynaPDF contains a very robust and powerful PDF parser that is able to repair many
damages in a PDF file.
See also OpenImportFile().
Previous topic: GetInPageCount, GetInPDFVersion, GetInPDFVersionEx
Next topic: GetIsFixedPich, GetIsTaggingEnabled, GetItalicAngle