Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 718

Previous Page 717   Index   Next Page 719

Function Reference
Page 718 of 770
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,
// Factur-X and ZUGFeRD2 profiles. The usage is identically as the older ZUGFeRD flags. That means
// if used alone, a PDF/A 3b file will be created.
pvFacturX_Minimum
= 0x00080000, // Minimum profile
pvFacturX_Basic
= 0x00100000, // Basic profile
pvFacturX_Basic_WL
= 0x00200000, // Basic WL profile
pvFacturX_Comfort
= 0x00400000, // EN 16931 profile
pvFacturX_Extended
= 0x00800000, // Extended profile
pvZUGFeRD2_Flag
= 0x01000000
// If set, a ZUGFeRD 2.0 will be created.
}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
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.
 

Previous topic: SetPageMode, SetPageWidth

Next topic: ZUGFeRD, ZUGFeRD 2.0, Factur-X, SetPrintSettings