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

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: 4989

It looks like you took the code from and modified it. Does the original example on 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 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:
subject: Generating pdf from jtable
It's not a secret anymore!