How to get PDF from postscript ?

Is there a way to convert a postscript file to a PDF file ?Frank
[78 byte] By [Ni_Mina] at [2007-11-27 8:28:30]
# 1
http://www.google.com/search?q=ps+pdf+converterIt found several choices on the first page of results.
paulcwa at 2007-7-12 20:18:29 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks, but I haven't found any java packages.Frank
Ni_Mina at 2007-7-12 20:18:29 > top of Java-index,Java Essentials,Java Programming...
# 3
so write your own, combining postscript and pdf packages available for Java.
jwentinga at 2007-7-12 20:18:29 > top of Java-index,Java Essentials,Java Programming...
# 4
Thanks for the advice, I'm not familiar with the available packages, any more detailed pointers ? And how to approach that ? I'm surprised that this is never done before.Frank
Ni_Mina at 2007-7-12 20:18:29 > top of Java-index,Java Essentials,Java Programming...
# 5

I did a Google on "java pdf ps", and found this:

http://www.dynalivery.com/products/saffron/saffron.html

It's commercial, but it seems to exist.

I googled on "java pdf ps converter" and found some other stuff, also commercial.

Personally, I'd suggest just Runtime.exec'ing a command-line program...unless you need the platform independence? Actually I think the command-line tools are open source anyway so you could just recompile them for a bunch of platforms.

May I ask why you need to convert PS to PDF from Java only?

paulcwa at 2007-7-12 20:18:29 > top of Java-index,Java Essentials,Java Programming...
# 6
Thanks for the details. The reason I am looking for a Java solution is we have a mixed environment of MAC OS X, Linux, Windows and Unix systems.So, I guess there is no Java open source for the problem ?Frank
Ni_Mina at 2007-7-12 20:18:29 > top of Java-index,Java Essentials,Java Programming...
# 7

Oh, I don't know. It's hard to prove a negative. I've never heard of any open-source project in Java to convert PS to PDF, but there are lots of open-source projects I've never heard of, so who knows? When I went to sourceforge.net and searched on "java pdf ps", there were 14828 results.

Anyway, one way to be sure there's an open-source project to do this, would be to create one. You're free to do so.

However, I'm not sure it's worth the effort. I know that there are postscript and PDF utilities, and I believe converters between the two, available from open source projects and written in C. You can probably compile the source from those on Linux and Windows, and probably OS X, and most major Unix flavors as well, and furthermore they'd be invoked from the command-line the same way.Personally, I'd poke around sourceforge.net or GNU's software directory a bit, and if I can't easily find a Java implementation, just get a well-supported C one.

I'm sure you'll find a converter with a command-line interface. You may find a converter written in C or C++ and compilable on all platforms you need, and that furthermore has a GUI. If not, and if you need a GUI, you can write a GUI in Java, invoking the converter via Runtime.exec (or ProcessBuilder these days) or JNI possibly.

paulcwa at 2007-7-12 20:18:29 > top of Java-index,Java Essentials,Java Programming...
# 8
Woo, 14828 results ? That's a good number to start with, great advice, I think I could find something there, how wonderful open source is, I don't have to re-invent the wheel.Thanks.Frank
Ni_Mina at 2007-7-12 20:18:29 > top of Java-index,Java Essentials,Java Programming...