permaculture playing cards*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Generating pdf from jtable" Watch "Generating pdf from jtable" New topic
Author

Generating pdf from jtable

Mamatha Rudrappa
Greenhorn

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
Bartender

Joined: May 03, 2008
Posts: 4530
    
    5

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
Greenhorn

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