Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

DynaPDF Manual - Page 715

Previous Page 714   Index   Next Page 716

Function Reference
Page 715 of 766
will be changed to PDF 1.2, you will get an error message in Adobe's Acrobat if the file contains CID
fonts (Unicode fonts). There is no other known feature that causes errors when opening a PDF file
with Acrobat or Reader.
To create PDF/X or PDF/A compatible files we recommended to use a preflight tool to check whether
unsupported features were used or whether additional settings are required to meet the
requirements of the standard. The PDF version should be set at the end of processing, directly before
CloseFile() or CloseFileEx() is called. See also PDF/X and PDF/X Compatibility.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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.
 

Previous topic: SetPDFVersion

Next topic: SetProgressProc