Solved

Converting PDF to PostScript using Java JAR or open-source

Posted on 2003-12-09
12
4,442 Views
Last Modified: 2013-12-02
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
Comment
Question by:sentosa_gani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
12 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 100 total points
ID: 9910523
 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
 

Author Comment

by:sentosa_gani
ID: 9910547
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
 
LVL 35

Expert Comment

by:girionis
ID: 9910567
 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:sentosa_gani
ID: 9910613
o yea... u suggest to convert a pdf into XML, but where to find that one? =S
0
 
LVL 35

Expert Comment

by:girionis
ID: 9910678
 The link I posted (http://www.geocities.com/marcoschmidt.geo/java-libraries-pdf.html) should point you to the right place.
0
 
LVL 1

Expert Comment

by:cavalmi
ID: 9911986
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
 

Author Comment

by:sentosa_gani
ID: 9917489
okay... I will ask xpdf people about the portability in Java too....
0
 

Author Comment

by:sentosa_gani
ID: 9917654
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
 

Author Comment

by:sentosa_gani
ID: 9917655
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
 
LVL 35

Expert Comment

by:girionis
ID: 9918662
 Yes you will have to define the XML structure yourself.
0
 

Author Comment

by:sentosa_gani
ID: 9925138
hmm.. in the end i can't find the solution, but thanks for all your help anyway...
0
 
LVL 35

Expert Comment

by:girionis
ID: 9926563
:)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question