Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 719

Previous Page 718   Index   Next Page 720

Function Reference
Page 719 of 770
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.
ZUGFeRD, ZUGFeRD 2.0, Factur-X
ZUGFeRD 2.0 and Factur-X are almost identically defined. Both standards support the very same
profiles. To create a ZUGFeRD 2.0 invoice with the profile Basic WL, for example, set the PDF
version as follows:
pdfSetPDFVersion(pdf, TPDFVersion(pvFacturX_Basic_WL | pvZUGFeRD2_Flag));
The PDF version is set to PDF/A 3b in the above example. If you want to create the very same invoice
but as PDF/A 3u file, for example, then set also the whished output PDF version:
pdfSetPDFVersion(pdf, TPDFVersion(pvPDFA_3u | pvFacturX_Basic_WL | pvZUGFeRD2_Flag));
Note that this function just sets the PDF version. It does not check whether the resulting file is
compatible to the whished output version. Use CheckConformance() to convert arbitrary PDF files to
PDF/A, ZUGFeRD, or Factur-X files.
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;
 

Previous topic: SetPDFVersion

Next topic: SetProgressProc