aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Converting image into pdf file and displaying the pdf file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Converting image into pdf file and displaying the pdf file." Watch "Converting image into pdf file and displaying the pdf file." New topic
Author

Converting image into pdf file and displaying the pdf file.

Riddhi Shah
Greenhorn

Joined: Jun 25, 2003
Posts: 19
Hi,
I am sure this question might have raised many times.
I have a requirement in my project to convert an image into a pdf file and after converting, display that file using some pdf writer. I was successful in creating a pdf file from an image using iText, PDFLib etc. However, the common issue with these code is that after creating the pdf file, this file gets saved in my 'classes' folder. So if I want to display this file, I have to use Runtime.exec() method to open this file using Adobe acrobat writer.
I am looking for some API that would open this generated pdf file from the code itself(other than runtime.exec()). Is this thing do-able. Are there any APIs that help me do this?
I hope I make some sense to you guys.
Thanks.
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1821

Just to be sure of your question, you are looking for a Java PDF viewer? If so, try JPedal. I've not used it, however, so I can't vouch for its viability. (I found out about it through iText's FAQ
Alternatively, you could look on Google for more options.
Hope this helps,


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Riddhi Shah
Greenhorn

Joined: Jun 25, 2003
Posts: 19
I want to display a pdf file (which is converted from an image) on a pdf writer so that I can copy this file for the later use.
Actually, my aim is to copy a pdf file and then paste it on another pdf file.
My application is like an electronic post-it notes that can be copied and pasted on any other applications like MS Word, Excel, Outlook etc. Now, we are trying to copy and paste our 'Note' on the pdf document. As we all know Acrobat reader will not allow to copy or manipulate the document, so we are trying to create a pdf document out of an image and then paste it over another pdf file.
I have so far been successful in creating pdf document out of an image. Now, I want to display it and copy it through Java application, so that it can be pasted on any other pdf file.
Is this do-able or am I crazy to think of such things?
I need some help with this. I would be greatful if someone can share some experience in this matter with me.
Thanks,
Riddhi.
Riddhi Shah
Greenhorn

Joined: Jun 25, 2003
Posts: 19
I tried using JPadel. However, it just had one jar file and I am not sure what else do I do afer including that jar file in my classpath.
It would be a great help if someone can guide me in the right directions.
Thanks,
Riddhi.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Converting image into pdf file and displaying the pdf file.