DynaPDF.GetPDFVersion
---------------------

The function returns the version of the output PDF file.

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

MBS( "DynaPDF.GetPDFVersion"; PDF ) 

**MBS**( **"DynaPDF.GetPDFVersion";** /\* The function returns the version of the output PDF file. \*/  
**$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 PDF Version like "1.3".

### Description

The function returns the version of the output PDF file.   
Possible values include 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 2.0, PDF/X-1a:2001, PDF/X-1a:2002, PDF/X-3:2002, PDF/X-3:2003, PDF/A-1b 2005, PDF/X-4, PDF/A 1a 2005, PDF/A 2a, PDF/A 2b, PDF/A 2u, PDF/A 3a, PDF/A 3b, PDF/A 3b, PDF/UA-1, ZUGFeRD Basic, ZUGFeRD Comfort, ZUGFeRD Extended, FacturX Minimum, FacturX Basic, FacturX Basic WL, FacturX Comfort, FacturX Extended, ZUGFeRD XRechnung.  
See also [GetPDFVersion](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetPDFVersion.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetDynaPDFVersion](DynaPDFGetDynaPDFVersion.md)
- [DynaPDF.GetImportPDFVersion](DynaPDFGetImportPDFVersion.md)
- [DynaPDF.GetInPDFVersionEx](DynaPDFGetInPDFVersionEx.md)
- [DynaPDF.GetPDFVersionEx](DynaPDFGetPDFVersionEx.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/Convert to PDFA](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Convert%20to%20PDFA.shtml#1ScriptAnchor_)

### FileMaker Magazin

- [Ausgabe 6/2016, Seite 24](https://filemaker-magazin.de/neuigkeit/3913-Appetithappen-FMM_201606)

This function checks for a license.

Created 18th August 2014 , last changed 24th January 2023

  
[DynaPDF.GetOutputIntentCount](DynaPDFGetOutputIntentCount.md) - [DynaPDF.GetPDFVersionEx](DynaPDFGetPDFVersionEx.md)

[HTML Version](DynaPDFGetPDFVersion.shtml)