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

DynaPDF Manual - Page 700

Previous Page 699   Index   Next Page 701

Function Reference
Page 700 of 750
SetPrintSettings
Syntax:
LBOOL pdfSetPrintSettings(
const PPDF* IPDF,
// Instance pointer
TDuplexMode Mode,
// See below
SI32 PickTrayByPDFSize,
// 1 = true, 0 = false, -1 = app default
UI32 NumCopies,
// 0 = app default, max = 5
TPrintScaling PrintScaling, // See below
UI32* PrintRanges,
// Optional start/end page number pairs
UI32 NumRanges)
// Number of ranges
typedef enum
{
dpmNone, // Default
dpmSimplex,
dpmFlipShortEdge,
dpmFlipLongEdge
}TDuplexMode;
typedef enum
{
psAppDefault, // Default
psNone
}TPrintScaling;
The function adds preferred print settings to the PDF file. Viewer applications use the print settings
to initialize the print dialog. Print ranges, if set, consist of two numbers which define the start and
end page number that should be printed.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetProgressProc
Syntax:
LBOOL pdfSetProgressProc(
const PPDF* IPDF,
// Instance pointer
const void* Data,
// User defined pointer
const void* InitProgress, // Initialization callback function
const void* Progress)
// Progress callback function
typedef SI32 TProgType;
#define ptImportPage 0
// Start page import
#define ptWritePage
1
// Start writing a page to file
#define ptPrintPage
2
// Start printing a PDF file
#define PDF_CALL __stdcall
// Windows only, otherwise empty
typedef void PDF_CALL TInitProgressProc(
const void* Data,
// User defined pointer
TProgType ProgType,
// Current process, see above
 

Previous topic: SetPDFVersion

Next topic: SetResolution