[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4582
  • Last Modified:

Converting PDF to PostScript using Java JAR or open-source

Hi All, I have a question of how to convert PDF file into PostScript file in a Java-based environment as I was doing a java project, and I need the thing to be in Java. It could be a JAR format or a Class format, either one is okay. I have searched google and found out a XPDF. I want something like it, except that XPDF convert PDF to PS using C++ library, and what I need is in Java.
0
sentosa_gani
Asked:
sentosa_gani
  • 6
  • 5
1 Solution
 
girionisCommented:
 Not sure if you can do it directly, you probably need to read in the PDF, convert it into XML and then reconvert it back to PS.

  Take a look here for some libraries to read/write PDF documents (some require a commercial licence): http://www.geocities.com/marcoschmidt.geo/java-libraries-pdf.html

  and here you can find some products that convert XML to PS (some are commercials):

http://www.icewalkers.com/Linux/Software/519060/RenderX-XEP.html
http://www.rtf2fo.com/index.html
http://xep.xattic.com/
0
 
sentosa_ganiAuthor Commented:
Hmmm.....
that's a suggestion. Anyway I still need a Java-based for those idea (in the sense that, it is open source or in jar format/class) . I'll check it first, and if I found it, I will reward the point =)
0
 
girionisCommented:
 Not sure if you can find one. If you are willing to sacrifice portability for functionallity you can always use the Runtime.getRuntime().exec() to do it.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
sentosa_ganiAuthor Commented:
o yea... u suggest to convert a pdf into XML, but where to find that one? =S
0
 
girionisCommented:
 The link I posted (http://www.geocities.com/marcoschmidt.geo/java-libraries-pdf.html) should point you to the right place.
0
 
cavalmiCommented:
I wrote to the xpdf people and asked them about a java port.  They said that they only had a few requests for it.  Maybe if more people wrote to them they might provide a java port.
0
 
sentosa_ganiAuthor Commented:
okay... I will ask xpdf people about the portability in Java too....
0
 
sentosa_ganiAuthor Commented:
To girionis, I still can't find the link to convert PDF to XML. THe link that you gave me is for reading PDF mostly
0
 
sentosa_ganiAuthor Commented:
To girionis, I still can't find the link to convert PDF to XML. THe link that you gave me is for reading PDF mostly
0
 
girionisCommented:
 Yes you will have to define the XML structure yourself.
0
 
sentosa_ganiAuthor Commented:
hmm.. in the end i can't find the solution, but thanks for all your help anyway...
0
 
girionisCommented:
:)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now