Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 442

Previous Page 441   Index   Next Page 443

Function Reference
Page 442 of 750
GetPDFVersion
Syntax:
SI32 pdfGetPDFVersion(
const PPDF* IPDF) // Instance pointer
The function returns the minor version of the output PDF file as integer value. Zero stand for PDF
1.0, one for PDF 1.1 and so on.
GetPrintSettings
Syntax:
LBOOL pdfGetPrintSettings(
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;
// dpmNone 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 currently defined print settings of the document. 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.
 

Previous topic: GetPageWidth

Next topic: GetRelFileNode