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 Swing / AWT / SWT and the fly likes How to print Graphics as a DOC or PDF file ?? 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 » Swing / AWT / SWT
Bookmark "How to print Graphics as a DOC or PDF file ??" Watch "How to print Graphics as a DOC or PDF file ??" New topic
Author

How to print Graphics as a DOC or PDF file ??

Rajesh Nair
Greenhorn

Joined: Aug 22, 2001
Posts: 9
Hi all,
Can anybody tell me how to print java graphics in PDF or DOC format instead of printing on Printer
Thanks in Advance
Rajesh
Paul Bailey
Ranch Hand

Joined: Oct 20, 2000
Posts: 91
Did you find an answer to this?
Michael Szul
Ranch Hand

Joined: Sep 18, 2001
Posts: 57
The Java CookBook from O'Reilly has an example of producing the output as a servlet in a .pdf file with a basic add-on class, but doesn't use images.
Basically you're going to need to use a third party API (unless you make it yourself). The book does mention a few third party API's that do include image support, but I don't have it in front of me right now, so there names escape me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to print Graphics as a DOC or PDF file ??
 
Similar Threads
How to convert doc files to pdf in Struts2
convert to pdf file format
Read Word/PDF
How to print windings characters in pdf using itext ?
Print Child Window