This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
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: 4989
    
    8

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Generating pdf from jtable
 
It's not a secret anymore!