DynaPDF Manual - Page 781

Previous Page 780   Index   Next Page 782

Function Reference
Page 781 of 839
SetPDFVersion
Syntax:
LBOOL pdfSetPDFVersion(
const PPDF* IPDF,
// Instance pointer
TPDFVersion Version) // Output PDF version
typedef enum TPDFVersion
{
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
pvPDF_1_5
= 5,
// PDF 1.5 -> default
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 / ZUGFeRD 2.1, and ZUGFeRD 2.0 profiles. The usage is identically in comparision
// to the older ZUGFeRD 1.0 flags. That means if used alone, a PDF/A 3b file will be created.
// ZUGFeRD 2.1 and Factur-X are identically defined in PDF. In order to create a ZUGFeRD 2.1
// invoice, set one of the Factur-X constants but don't set the flag pvZUGFeRD2_Flag.
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.
pvPDFX5g
= 23,
// PDF/X-5g
pvPDFX5n
= 24,
// PDF/X-5n
pvPDFX5pg
= 25,
// PDF/X-5pg
pvPDFX6
= 26,
// PDF/X 6
pvPDFX6n
= 27,
// PDF/X 6n
pvPDFX6p
= 28,
// PDF/X 6p
pvPDFUA1
= 29,
// PDF/UA-1 (ISO 14289-1)
pvPDFX4p
= 30,
// PDF/X-4p
pvPDFVT1
= 0x02000000, // PDF/VT 1 flag. The base version must be a PDF/X version.
pvPDFVT2
= 0x04000000, // PDF/VT 2 flag. The base version must be a PDF/X version.
pvPDFVT3
= 0x08000000, // PDF/VT 3 flag. The base version must be a PDF/X version.
pvPDFVTMask
= pvPDFVT1 | pvPDFVT2 | pvPDFVT3,
pvPDFUAFlag
= 0x20000000, // PDF/UA flag. Can be used in addition with other standards.
// File metadata will contain PDF/A and PDF/UA entries.
pvPDFA_4
= 31,
// PDF/A 4.
pvPDFA_4e
= 32,
// PDF/A 4e allows 3D contents in rich media annotations.
pvPDFA_4f
= 33
// PDF/A 4f allows file attach annotations.
}TPDFVersion;
 

Previous topic: SetPageOrientation, SetPageWidth

Next topic: ZUGFeRD, ZUGFeRD 2.0, Factur-X / ZUGFeRD 2.1/2.2, ZUGFeRD 2.1 or higher