aspose file tools*
The moose likes Other Open Source Projects and the fly likes Need to generate a PDF file using JSP/Servlet getting data from the database. 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 "Need to generate a PDF file using JSP/Servlet getting data from the database." Watch "Need to generate a PDF file using JSP/Servlet getting data from the database." New topic
Author

Need to generate a PDF file using JSP/Servlet getting data from the database.

sumeet gupta
Ranch Hand

Joined: Aug 31, 2008
Posts: 33
Hi Guys,
I need to generate a PDF file using JSP/Servlet getting data from the database.
can somebody please give me some examples?

Thanks,
Sumeet Gupta
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42631
    
  65
If the data is in the shape of XML as well as being pretty regular, and you're comfortable using XSL-FO, check out Apache FOP.

The most common API used for creating PDFs in Java is the iText library.


Ping & DNS - my free Android networking tools app
sumeet gupta
Ranch Hand

Joined: Aug 31, 2008
Posts: 33
Hi Ulf,

Thanks for the response!! I m not comfortable with XSL-FO. That's the reason why I want to do it with iText. If you can suggest me some good material on the same topic it will be a good help to me.


Thanks,
Sumeet Gupta
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42631
    
  65
The iText site has many examples that should get you started. But if you're serious at all about it, get the "iText In Action" book. It'll save you lots of time trying to piece together functionality from the tutorial and javadocs.
sumeet gupta
Ranch Hand

Joined: Aug 31, 2008
Posts: 33
Hi Ulf,

Thanks for the help. surely I will get "iText in Action" and read it completely before jumping into development.

Thanks,
Sumeet Gupta
 
 
subject: Need to generate a PDF file using JSP/Servlet getting data from the database.