Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sumeet gupta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sumeet gupta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

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

Thanks,
Sumeet Gupta
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic