• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

.jsp file to .pdf file

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been using iText to create PDF files.
It works for me
http://www.lowagie.com/iText/
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic