DynaPDF Manual - Page 478

Previous Page 477   Index   Next Page 479

Function Reference
Page 478 of 818
GetPDFVersion
Syntax:
SI32 pdfGetPDFVersion(
const PPDF* IPDF) // Instance pointer
The function returns the PDF version as specified in the member TPDFVersion. The return value is
defined as SI32 (signed 32 bit integer) due to historical reasons. Make a typecast to TPDFVersion to
get the correct value.
GetPDFVersionEx() can be called to determine the underlying PDF standard as well as the major
and minor version.
GetPDFVersionEx
Syntax:
LBOOL pdfGetPDFVersionEx(
const PPDF* IPDF,
// Instance pointer
struct TPDFVersionInfo* Value) // Required
struct TPDFVersionInfo
{
UI32
StructSize;
// Must be set to sizeof(TPDFVersionInfo)
UI32
Major;
// PDF major version, e.g. 1
UI32
Minor;
// PDF minor version, e.g. 7
const char* MainVer;
// Set if the file conforms to a specific PDF standard, e.g. "PDF/X
// 1a:2003", "PDF/A 3b", and so on.
const char* SubVer;
// e.g. "ZUGFeRD 2.0", "Factur-X", and so on.
// PDF/A
const char* PDFAConformance; // e.g. A, B, E, F, U, or UA.
UI32
PDFAVersion;
// If greater zero, this is a PDF/A file.
// PDF/E
const char* PDFEVersion;
// e.g. PDF/E-1
// PDF/VT
const char* PDFVTModDate;
// Modification date, e.g. 2016-05-07T15:42:23+01:00
const char* PDFVTVersion;
// e.g. PDF/VT-2
// PDF/X
const char* PDFXConformance; // e.g. PDF/X-1a:2001 or PDF/X-1a:2003. PDF/X 3 and above do not set
// this key anymore.
const char* PDFXVersion;
// e.g. PDF/X-1:2001, PDF/X-1:2003, and so on.
// ZUGFeRD, Factur-X, XRechnung
const char* FXConfLevel;
// ConformanceLevel
const char* FXDocName;
// DocumentFileName
const char* FXDocType;
// DocumentType
const char* FXVersion;
// Version
SI32
VersionConst;
// If >= 0 this is the TPDFVersion constant as integer. If the
// version is not supported by DynaPDF, this member is set to -1.
};
The function retrieves the major and minor version of the PDF document as well as the underlying
PDF standard(s), if any.The member StructSize must be set to sizeof(TPDFVersionInfo) before the
function be called.
A PDF file can be compatible to multiple standards like PDF/A and PDF/X. Therefore, more than
one version can be set at time.
 

Previous topic: GetPageWidth

Next topic: ZUGFeRD, Factur-X, XRechnung, VersionConst, Not implemented


Start Chat