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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Sets the PDF version.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
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" |
Returns OK or error message.
See also SetPDFVersion function in DynaPDF manual.
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") ]
This function checks for a license.
Created 18th August 2014, last changed 10th March 2023