Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetPDFVersion
Sets the PDF version.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
version | The version number. Can be 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, PDF/X-1a:2001, PDF/X-1a:2003, PDF/X-3:2002, PDF/X-3:2003, PDF/A-1b, PDF/UA-1 and other values. |
"1.3" |
Result
Returns OK or error message.
Description
Sets the PDF version.The function changes the output PDF file version. The default output version is PDF 1.4. If a PDF 1.5 or higher file will be opened for import, the output version will be changed if necessary to the version that the file requires.
Possible values in plugin version 4.4: 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 or PDF/A 3u.
DynaPDF Version 4.0 also supports ZUGFeRD Basic, ZUGFeRD Comfort and ZUGFeRD Extended.
DynaPDF Version 4.0.28.81 defines new formats: FacturX Minimum, FacturX Basic, FacturX Basic WL, FacturX Comfort, FacturX Extended, FacturX XRechnung, ZUGFeRD2 Minimum, ZUGFeRD2 Basic, ZUGFeRD2 Basic WL, ZUGFeRD2 Comfort and ZUGFeRD2 Extended. Factur constants can be used for ZUGFeRD 2.1, too.
Requires DynaPDF Lite license for PDF/A and PDF/X versions.
Added PDF/UA-1 for version 4.0.71.204 of DynaPDF.
Added PDF/A 4, PDF/A 4e and PDF/A 4f for v13.5 and DynaPDF 4.0.80.232.
See also SetPDFVersion function in DynaPDF manual.
Examples
Set PDF Version 1.3:
Set Variable [$r; Value:MBS("DynaPDF.SetPDFVersion"; $pdf; "1.3")]
Set basic ZUGFeRD version:
Set Variable [$r; Value:MBS("DynaPDF.SetPDFVersion"; $pdf; "ZUGFeRD Basic")]
# with PDF/A 3b
Set some values for PDF/UA:
# A PDF/UA conformant file must contain a title
Set Variable [ $r ; Value: MBS("DynaPDF.SetDocInfo"; $pdf; "Title"; "Test PDF") ]
# Required! The document title must be displayed
Set Variable [ $r ; Value: MBS("DynaPDF.SetViewerPreferences"; $pdf; "DisplayDocTitle"; "None") ]
# Required! The language must be set too
Set Variable [ $r ; Value: MBS("DynaPDF.SetLanguage"; $pdf; "en-US") ]
# PDF/UA files are Tagged PDF files. So, a structure tree is required.
Set Variable [ $r ; Value: MBS("DynaPDF.CreateStructureTree"; $pdf) ]
# set PDF Version
Set Variable [ $r ; Value: MBS("DynaPDF.SetPDFVersion"; $pdf; "PDF/UA-1") ]
Set version to PDF/X-1a:2001:
Set Variable [ $r ; Value: MBS("DynaPDF.SetPDFVersion"; $pdf; "PDF/X-1a:2001") ]
See also
- DynaPDF.CreateStructureTree
- DynaPDF.GetDynaPDFVersion
- DynaPDF.GetInPDFVersionEx
- DynaPDF.GetPDFVersion
- DynaPDF.GetPDFVersionEx
- DynaPDF.Initialize
- DynaPDF.New
- DynaPDF.SetDocInfo
- DynaPDF.SetLanguage
- DynaPDF.SetViewerPreferences
Release notes
- Version 13.5
- Added PDF/A 4, PDF/A 4e and PDF/A 4f for DynaPDF.SetPDFVersion function.
- Version 13.1
- Added PDF/UA-1 for DynaPDF.SetPDFVersion function.
- Version 9.3
- Added options to DynaPDF.SetPDFVersion function to create ZUGFerd 2.0 and Factur-X files.
Example Databases
Blog Entries
- Neues MBS Plugin 13.5 für Claris FileMaker
- MBS Plugin 13.5 for Claris FileMaker
- MBS FileMaker Plugin, version 13.5pr5
- MBS FileMaker Plugin, version 13.1pr1
- MBS FileMaker Plugin, version 9.3pr1
- How to Convert a PDF document to a PDF/A
This function checks for a license.
Created 18th August 2014, last changed 3th April 2024
