Solved

Converting PDF to PostScript using Java JAR or open-source

Posted on 2003-12-09
12
4,387 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet example 17 59
Crystal Reports Licensing Questions 4 65
Selenium docs api java index 3 69
Java program running SQL query 5 50
PaperPort is a popular document imaging/management product from Nuance Communications (http://www.nuance.com/). It is in widespread use by both individuals (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) and businesses (http:/…
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…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
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 …

730 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