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
Solved

Converting PDF to PostScript using Java JAR or open-source

Posted on 2003-12-09
12
4,357 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
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Question has a verified solution.

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

Suggested Solutions

I. Introduction In a previous article (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_6537-PaperPort-Upgrade-How-to-download-and-install-updated-versions-of-PaperPort-11-and-12.html) (now deprecated), I discussed how to upgrad…
This article shows how to convert a multi-page PDF file into multiple image files, with one image file created for each page of the PDF. It does this by utilizing an excellent, free software package called GraphicsMagick. The solution is amazingly s…
The viewer will learn how to implement Singleton Design Pattern in Java.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

809 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