Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 714

Previous Page 713   Index   Next Page 715

Function Reference
Page 714 of 766
SetPDFVersion
Syntax:
LBOOL pdfSetPDFVersion(
const PPDF* IPDF,
// Instance pointer
TPDFVersion Version) // Output PDF version
typedef enum
{
pvPDF_1_0
= 0,
// PDF 1.0
pvPDF_1_1
= 1,
// PDF 1.1
pvPDF_1_2
= 2,
// PDF 1.2
pvPDF_1_3
= 3,
// PDF 1.3
pvPDF_1_4
= 4,
// PDF 1.4 -> default
pvPDF_1_5
= 5,
// PDF 1.5
pvPDF_1_6
= 6,
// PDF 1.6
pvPDF_1_7
= 7,
// PDF 1.7
pvPDF_2_0
= 8,
// PDF 2.0
pvReserved
= 9,
// Reserved for future use
pvPDFX1a_2001 = 10, // PDF/X-1a:2001
pvPDFX1a_2003 = 11, // PDF/X-1a:2003
pvPDFX3_2002
= 12, // PDF/X-3:2002
pvPDFX3_2003
= 13, // PDF/X-3:2003
pvPDFA_2005
= 14, // PDF/A-1b
pvPDFX_4
= 15, // PDF/X-4
pvPDFA_1a
= 16, // PDF/A 1a
pvPDFA_2a
= 17, // PDF/A 2a
pvPDFA_2b
= 18, // PDF/A 2b
pvPDFA_2u
= 19
// PDF/A 2u
pvPDFA_3a
= 20, // PDF/A 3a
pvPDFA_3b
= 21, // PDF/A 3b
pvPDFA_3u
= 22, // PDF/A 3u
// The following constants are flags which can be combined with
// pvPDFA_3a, pvPDFA_3b, and pvPDFA_3u. If used stand alone PDF/A 3b
// with the correspondig ZUGFeRD metadata will be created.
pvZUGFeRD_Basic
= 0x00010000,
pvZUGFeRD_Comfort
= 0x00020000,
pvZUGFeRD_Extended = 0x00040000
}TPDFVersion;
The function changes the output file version. The default output version is PDF 1.4. If a PDF file with
a higher version as curently set will be imported, then the file version is adjusted to the version of the
imported file.
To improve processing speed, the output version is not checked at runtime and no features are
disabled which are maybe not supported by the current PDF version.
However, if a PDF file must be compatible to a specific Acrobat version, change the version and open
the file in Adobe's Acrobat. If error messages or other warnings appear, the file contains
unsupported features. For example, Unicode output is supported since PDF 1.3. If the output version
 

Previous topic: SetPageWidth

Next topic: SetPrintSettings