Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Converting image into pdf file and displaying the pdf file.

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 1840
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Riddhi Shah
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!