Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Retrieves the version information of the currently open import file.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 11.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetInPDFVersionEx"; PDF )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf


Returns JSON or error.


Retrieves the version information of the currently open import file.
JSON result includes:
MajorPDF major version, e.g. 1
MinorPDF minor version, e.g. 7
MainVerSet only if the file conforms to a specific PDF standard, e.g. "PDF/X // 1a:2003", "PDF/A 3b", and so on.
SubVere.g. "ZUGFeRD 2.0", "Factur-X", and so on

for PDF/A
PDFAConformance: e.g. A, B, E, F, U, or UA.
PDFAVersion: If greater zero, this is a PDF/A file.

for PDF/E
PDFEVersion: e.g. PDF/E-1

for PDF/VT
PDFVTModDate: Modification date, e.g. 2016-05-07T15:42:23+01:00
PDFVTVersion: e.g. PDF/VT-2

for PDF/X
PDFXConformance: e.g. PDF/X-1a:2001 or PDF/X-1a:2003. PDF/X 3 and above do not set this key anymore.
PDFXVersion: e.g. PDF/X-1:2001, PDF/X-1:2003, and so on.

for ZUGFeRD, Factur-X, XRechnung
FXConfLevel: ConformanceLevel
FXDocName: DocumentFileName
FXDocType: DocumentType
FXVersion: Version
VersionConst: If >= 0 this is the DynaPDF PDFVersion constant as number. If the version is not supported by DynaPDF, this member is set to -1.

See also GetInPDFVersionEx function in DynaPDF manual.


Query the version of import PDF:

    "Major": 1,
    "Minor": 7,
    "MainVer": "PDF/A-3b",
    "SubVer": "ZUGFeRD 2.0",
    "PDFAConformance": "B",
    "PDFAVersion": 3,
    "PDFEVersion": "",
    "PDFVTModDate": "",
    "PDFVTVersion": "",
    "PDFXConformance": "",
    "PDFXVersion": "",
    "FXConfLevel": "BASIC",
    "FXDocName": "zugferd-invoice.xml",
    "FXDocType": "INVOICE",
    "FXVersion": "1.0",
    "VersionConst": 17825813

See also

Release notes

Blog Entries

This function checks for a license.

Created 24th October 2021, last changed 23th November 2023

DynaPDF.GetInMetadata - DynaPDF.GetInPrintSettings