Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert from PDF to Postscript using Java

I am having a J2EE based application, where I am using a reporting tool to generate outputs in PDF format. I need a utility/ tool in Java which can help me convert my PDF file to postscript format so that I can print it to a printer... My application will be running on a variety of OS (i.e. Windows / Linux / AIX) hence a platform independant solution is essential. My reporting tool does not support outputs in PS format. Please advice...

like image 612
Aniket Bharambe Avatar asked Jan 15 '10 15:01

Aniket Bharambe


1 Answers

There are AFAIK no fool proof pure Java solutions for this, but if the conversion is to be done server-side, I would recommend you to use Ghostscript's pdf2ps converter. Even if you have to install a platform specific version of Ghostscript, you should find one for all the mentioned platforms.

like image 184
jarnbjo Avatar answered Oct 05 '22 13:10

jarnbjo