This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41129
    
  45
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: 41129
    
  45
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to generate a PDF file using JSP/Servlet getting data from the database.
 
Similar Threads
Documents
PDF generate using jasper reports
Javascript alert from PDF in JSP file
Is it possible to generate a PDF file using servlet
Storing arraylist of hashmaps in session