jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes Generating pdf from jtable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Generating pdf from jtable" Watch "Generating pdf from jtable" New topic

Generating pdf from jtable

Mamatha Rudrappa

Joined: May 29, 2012
Posts: 2
I am developing a tool in java to generate pdf from jtable.
I tried to use itext but I am getting black pdf. Below is the code that I used.

Can anyone help me please..................?

Also to purchase 3rd party api's or libraries, which ones are good?

Thank you..
Darryl Burke

Joined: May 03, 2008
Posts: 5042

It looks like you took the code from http://www.java2s.com/Tutorial/Java/0419__PDF/CreatePdfdocumentfromJTable.htm and modified it. Does the original example on java2s.com work for you?

luck, db
There are no new questions, but there may be new answers.
Mamatha Rudrappa

Joined: May 29, 2012
Posts: 2
Thank you for the reply.
No, example from java2s.com does not work. It generates a blank pdf.
I am not sure what wrong i am doing..
I agree. Here's the link: http://aspose.com/file-tools
subject: Generating pdf from jtable
jQuery in Action, 3rd edition