Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5    Statistic    FMM    Blog  

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 11.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetPDFVersionEx"; PDF )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $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:
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

Examples

Query version of a simple PDF:

MBS( "DynaPDF.GetPDFVersionEx"; $pdf)

Example result:
{
  "Major":   1,
  "Minor":   4,
  "MainVer":   "",
  "SubVer":   ""
}

See also

Release notes

  • Version 11.5
    • Added DynaPDF.GetPDFVersionEx function.

Blog Entries

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


DynaPDF.GetPDFVersion - DynaPDF.GetPageAnnotCount

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins

Start Chat