aspose file tools*
The moose likes Java in General and the fly likes Generating PDF with data from DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Generating PDF with data from DB" Watch "Generating PDF with data from DB" New topic
Author

Generating PDF with data from DB

Fred Artes
Ranch Hand

Joined: Nov 14, 2008
Posts: 43
Hello,

I must generate A PDF file from data from DB.
I'm thinking to use FOP or IText.

What is the best option in your opinion ?
I have already used FOP ....
shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200

Use Jasper Reports api... i hope this will help!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
FOP is good if the data is in XML format already; if it isn't, its value is somewhat diminished. Plus, you need to become accomplished in XSL-FO.

iText is API-based, and can handle everything you throw at it, but you need to write more code to do that.


Ping & DNS - my free Android networking tools app
G.Sathish kumar
Ranch Hand

Joined: Jul 27, 2009
Posts: 84
Fred Artes wrote:Hello,

I must generate A PDF file from data from DB.
I'm thinking to use FOP or IText.

What is the best option in your opinion ?
I have already used FOP ....


iReport is the most popular visual reporting tool for JasperReports (Java reporting library) and JasperServer (reporting server). You can manage charts, images, subreports, etc. Data sources: JDBC, TableModels, JavaBeans, XML, Hibernate, CSV etc. Output

You can design the chart pdf csv using designer and pass xml or java.util.map in the java to build chart or pdf


Thanks
Sathish kumar
SCJP, SCWCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Generating PDF with data from DB