Q: How do I know what version number of the Qoppa’s PDF library I am running?
A: There are 3 ways to figure out what version of the library you are running:
Running command line (java -jar)
Open a command prompt and navigate to the folder where the jar file jPDF[Name].jar is located.
Type in:
java -jar jPDF[Name] -serverinfo |
where [Name] stands for the specific library you are running: Assemble, Field, Images, Notes, Print, Process, Secure, Text, Viewer.
The first line output is the library version number.
Using Java Code
All main classes of our library have a static method called getVersion() which can be called without instantiating the class:
PDF[Name].getVersion(); |
where [Name] stands for the specific java PDF library used: Assemble, Field, Images, Print, Process, Secure, Text.
// get version of jPDFViewer PDFViewerBean.getVersion(); |
// get version of jPDFPrint PDFPrint.getVersion(); |
// get version of jPDFProcess PDFDocument.getVersion(); |
Looking inside the JAR file
This will only give you the main version for instance v2015R1 but not the minor version if you are running a small build / fixed branch such as v2015R1.01. We will change our jars soon to include the minor version as well.
Open our jar file jPDF[Name].jar
where [Name] stands for the specific library you are running: Assemble, Field, Images, Notes, Print, Process, Secure, Text, Viewer – with a program such as WinRAR or Winzip.
Look for the file called MANIFEST.MF under the folder META-INF.
Open MANIFEST.MF with Notepad or any text editor.
The version number will be following theon the 7th line following the tag “Specification-Version”