DynaPDF.GetPDFVersionEx
-----------------------

Retrieves the major and minor version of the PDF document as well as the underlying PDF standard, if any.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [11.5](newinversion115.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetPDFVersionEx"; PDF ) 

**MBS**( **"DynaPDF.GetPDFVersionEx";** /\* Retrieves the major and minor version of the PDF document as well as the underlying PDF standard, if any. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns JSON or error.

### Description

Retrieves the major and minor version of the PDF document as well as the underlying PDF standard, if any.  
JSON result includes:  
| Major | PDF major version, e.g. 1 |
|---|---|
| Minor | PDF minor version, e.g. 7 |
| MainVer | Set only if the file conforms to a specific PDF standard, e.g. "PDF/X // 1a:2003", "PDF/A 3b", and so on. |
| SubVer | e.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 &gt;= 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 [GetPDFVersionEx](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetPDFVersionEx.shtml) function in DynaPDF manual.

### Examples

Query version of a simple PDF:

 MBS ( "DynaPDF.GetPDFVersionEx"; $pdf )  
<small>  
Example result:   
{ "Major" : 1 , "Minor" : 4 , "MainVer" : "" , "SubVer" : "" } </small>### See also

- [DynaPDF.GetDynaPDFVersion](DynaPDFGetDynaPDFVersion.md)
- [DynaPDF.GetInPDFVersionEx](DynaPDFGetInPDFVersionEx.md)
- [DynaPDF.GetPDFVersion](DynaPDFGetPDFVersion.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetPDFVersion](DynaPDFSetPDFVersion.md)

### Release notes

- **Version 12.2**
    - Fixed problem in [DynaPDF.GetInPDFVersionEx](https://www.mbsplugins.eu/DynaPDFGetInPDFVersionEx.shtml) and [DynaPDF.GetPDFVersionEx](https://www.mbsplugins.eu/DynaPDFGetPDFVersionEx.shtml) not always returning the data.
- **Version 11.5**
    - Added [DynaPDF.GetPDFVersionEx](https://www.mbsplugins.eu/DynaPDFGetPDFVersionEx.shtml) function.

### Example Databases

- [DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Extract XML](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/ZUGFeRD%20and%20Facture-X/ZUGFeRD%20Extract%20XML.shtml#2ScriptAnchor_)

### Blog Entries

- [Extract invoice for ZUGFeRD and Facture-X](https://www.mbsplugins.de/archive/2024-09-20/Extract_invoice_for_ZUGFeRD_an/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.2pr7](https://www.mbsplugins.de/archive/2022-05-13/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [New in version 11.5 of MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-11-30/New_in_version_115_of_MBS_File/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.5 - Über 6600 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2021-11-16/Neues_MBS_FileMaker_Plugin_115/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.5](https://www.mbsplugins.de/archive/2021-11-16/MBS_FileMaker_Plugin_115/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.5pr1](https://www.mbsplugins.de/archive/2021-10-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th September 2021 , last changed 24th October 2021

  
[DynaPDF.GetPDFVersion](DynaPDFGetPDFVersion.md) - [DynaPDF.GetPageAnnotCount](DynaPDFGetPageAnnotCount.md)

[HTML Version](DynaPDFGetPDFVersionEx.shtml)