• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Converting image into pdf file and displaying the pdf file.

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Hey! You're stepping on my hand! Help me tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic