aspose file tools*
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 Spring in Action this week in the Spring 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 ??