DynaPDF Manual - Page 764

Previous Page 763   Index   Next Page 765

Function Reference
Page 764 of 821
SetPageWidth
Syntax:
LBOOL pdfSetPageWidth(
const PPDF* IPDF, // Instance pointer
double Value)
// New page width
The function changes the width of the currently open page if any, or the default width for newly
created pages. This function changes the media box of a page (see also SetBBox()). The page width
must be greater zero.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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
 

Previous topic: SetPageLayout, SetPageMode

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


Start Chat