Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.jsp file to .pdf file

 
Boon Subra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All,
Please let me know how to convert a report.jsp file to report.pdf /somename.pdf the same file.
Its v.urgent.
Thanks,
Bhuvana
 
prabhat kumar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look at xml.apache.org
in FOP project
[ October 30, 2002: Message edited by: prabhat kumar ]
 
Boon Subra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prabhat,
Thanks for the info.
I find that its based on XML.I am not aware of xml programming.
Is there any other method.
Thanks
 
Jesse Beaumont
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at some of these. They are Java libraries for generating pdf files
http://www.etymon.com/
http://pdf.dotshell.com/
I haven't used either of these, and I know that there are a bunch more as well. I used a package called pdflib but I can't seem to get at the website, so I don't know what happened to that. I used pdf lib to generate pdf files on the fly and display it in a browser.
Hope this helps.
 
Sean Sullivan
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been using iText to create PDF files.
It works for me
http://www.lowagie.com/iText/
 
G. P.
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used both iText and the FOP approaches.
IText is good if you want to read data from a database and directly format it into a PDF file. There is no XML involved here. It is good for generating small PDF's on the fly for display in a browser.
In the FOP way, you have to format the data you read into XML, then create an xsl stylesheet using formatting objects, the xml is then rendered into a PDF using the xsl stylesheet. If the document is large, the transfomation is rather slow and is better done offline. However this way gives you more flexibility on the PDF. Easy to modify PDFs quickly... It will take a little longer to setup and learn if you have not worked with XML/XSL before.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic