Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to convert PNG to POSTSCRIPT using java?

 
Ricardo Prado
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64701
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked out iText?
 
Ricardo Prado
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Ricardo Prado
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, anyway
 
Ricardo Prado
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic