This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Generate dynamic PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Generate dynamic PDF " Watch "Generate dynamic PDF " New topic

Generate dynamic PDF

Suhel Sayyed

Joined: Nov 03, 2011
Posts: 8

I would like to know if its possible to print a table in PDF using Java code, where in number of rows or columns may vary. I mean there can be different number of columns or rows everytime a report is generated.

My application reads columns and rows from mainframe database in form of an XML structure. Suppose if XML tells me x,x then there should be x columns in table and x rows printed under them. XML parsing logic I already have written, which is working good.

If someone could please tell me if this is possible in PDF. Had been using Elixir tool for reporting, but was not able to find any way to do this is Elixir. Now lookig forward to do it via PDF.

Thanks in advance.

Suhel Sayyed.
Tim Moores

Joined: Sep 21, 2011
Posts: 2408
If you're prepared to use a reporting engine, have a look at JasperReports. A more pedestrian approach would be via Apache FOP or the iText library.
GeeCON Prague 2014
subject: Generate dynamic PDF