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:

Looking inside the JAR file

Open our jar file jPDF[Name].jar with Winrar or Winzip, 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.

Double-click to Open MANIFEST.MF with Notepad or any text editor.

The version number can be found on the 7th line following the tag “Specification-Version”

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();