Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to output/dump JSP data into a pdf file???

 
suneel kanth
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Pls help me to find the sol.If possible explain me with example....Thank you ...
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did a little searching in the Java In General (Advanced) forum and found mention of this: iText
It's an open source set of classes that allow you to generate PDF files. There's documentation listed on the site -- you'll have to walk through it and read a bit to figure out how to get it to work.
Enjoy!
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the xml/xslt alternative would be fop.
http://xml.apache.org/fop/index.html
In the download you find a servlet example.
2 tutorials and 1 article about using fop, all fresh
The tutorials are not specifically about using fop into servlets/jsp, but its easy to integrate both technologies.
For performance reasons it some sort of a caching-strategy for the dynamically generatede files might be a good idea, if possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic