DynaPDF Manual - Page 458

Previous Page 457   Index   Next Page 459

Function Reference
Page 458 of 860
MajorVersion * 10 + MinorVersion
For PDF 2.1 the result would be 21.
The PDF file must be opened with OpenImportFile() or OpenImporBuffer() beforehand.
Return values:
If the function succeeds the return value is the minor version number. If the function fails the return
value is a negative error code.
GetInPDFVersionEx
Syntax:
SI32 pdfGetInPDFVersionEx(
const PPDF* IPDF,
// Instance pointer
struct TPDFVersionInfo* Value) // Version structure or NULL
The function retrieves the version information of the currently open import file. The function can be
called with or without the structure TPDFVersionInfo. If value is set to NULL, the function returns
the version constant as defined in the enum TPDFVersion or -1 if the version is not supported by
DynaPDF.
A return value smaller than -1 indicates that an error occurred.
The version constants are described in detail at GetPDFVersionEx().
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;
 

Previous topic: GetInNamedDestCount (obsolete), GetInOrientation, GetInPageCount, GetInPDFVersion

Next topic: GetInRepairMode, GetIsFixedPich