This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to convert PNG to POSTSCRIPT using java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to convert PNG to POSTSCRIPT using java?" Watch "How to convert PNG to POSTSCRIPT using java?" New topic
Author

How to convert PNG to POSTSCRIPT using java?

Ricardo Prado
Greenhorn

Joined: Oct 01, 2010
Posts: 13
AAAAAAAAAAH!!!

Its impossible! I just can't make it. I've looked everywhere. I've looked all over the internet and there is not one single person on the planet that can't solve my problem.


I have a printer that only accepts POSTSCRIPT. I have a IMAGE here, its a PNG image. I want to print it. I really really want to print this little image but there is NO WAY that I can do that. I've about IReports but I don't think I'll need all that! I just want to print one single nice image that I have here.

MY JOB:
MAKE AN APPLET THAT GENERATE SOME GRAPHS (WORKING)
MAKE A SAVE BUTTON (WORKING)
MAKE A FREAKING PRINT BUTTON (NOT WORKING AT ALL)

Aaahh!! I'm looking for this solution for SO LONG THAT MY HEAD JUST CAN'T TAKE IT ANYMORE

Sorry for my terrible english. My head is broken.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60783
    
  65

Have you checked out iText?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ricardo Prado
Greenhorn

Joined: Oct 01, 2010
Posts: 13
Developers can use iText to:

* Serve PDF to a browser
* Generate dynamic documents from XML files or databases
* Use PDF's many interactive features
* Add bookmarks, page numbers, watermarks, etc.
* Split, concatenate, and manipulate PDF pages
* Automate filling out of PDF forms
* Add digital signatures to a PDF file


Is there anything else that is not written there?
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Ricardo,

May be you can co-relate this link with what Bear mentioned earlier. I'm not an expert developer but I was just curious if Postscript has anything to do with pdf. May be these two links provide you the missing link. All the best and please do share your experience back in this forum, so that others like me can be benefited.


Regards
KumarRaja

Ricardo Prado
Greenhorn

Joined: Oct 01, 2010
Posts: 13
Should I wrap my image in a PDF file and then send it to the printer?
I've found something more (direct) interesting in here:
http://xmlgraphics.apache.org/commons/postscript.html

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38025
    
  22
Welcome to the Ranch, anyway
Ricardo Prado
Greenhorn

Joined: Oct 01, 2010
Posts: 13
Thank you.
I had a beer and now I'm happy.

I've came here because i read in JSP & Servlets book that here is a good place to come.
And they are right, you people are very nice.

I'm leaving now, have a good Weekend!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert PNG to POSTSCRIPT using java?
 
Similar Threads
.bmp file
editable JCombobox need help getting text from user
Printing LARGE graphics
Compila errora help me :(
How get useful data from PostScript format file(.ps)?