Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Streaming a JTable into a PDF file

843807Mar 8 2006
Hi

I'm trying to generate a report from a JTable and I would like to do it in a PDF file. I've tried to use the JTable print facility to build a BufferedImage. Then, I've tried to add the image to a PDF through iTEXT API, but the image generated doesn't have the same resolution than printing the JTable in a default printer and the resulting PDF isn't suitable for my purposes.

I've tried to print the JTable content ina postscript file, but I cannot view the PS file into my application (in order to avoid PDF conversion). I've tried some expamples of Java Postscript viewers (Toastscript, etc.) but none of them can read the PS files generated.

Any tip? Can anybody help me?

Thanks in advance!

Regards!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 5 2006
Added on Mar 8 2006
0 comments
233 views