wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes JSP Page to PDF File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JSP Page to PDF File " Watch "JSP Page to PDF File " New topic
Author

JSP Page to PDF File

Niklesh Mudiraj
Greenhorn

Joined: Jun 26, 2011
Posts: 10

Hi ,

I have one jsp file PrintApplication.jsp which show all the 4 form fill by applicant in in one jsp page.I need to print that jsp/html page to pdf .How to do this.Can you please help.


Thanks & Regards,
Mudiraj Niklesh
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

You can use the JasperReport to help you with that.


http://jasperforge.org/projects/jasperreports


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Ravi Majety
Ranch Hand

Joined: Feb 26, 2009
Posts: 59

i think you can perform this by making use of itext.jar
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Smarty Ravi wrote:i think you can perform this by making use of itext.jar

If you're willing to write code that converts HTML to PDF, then yes - iText can help. But that's akin to writing an HTML interpreter, which is a huge task.

If the web page can be made to be CSS-styled XHTML, then the FlyingSaucer library can perform the transformation for little work.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSP Page to PDF File
 
Similar Threads
convert Jsp page to PDF
Covert Excel Worksheet to PDF
PDF and HTML
setting No Cache for JSP
PDF file and JSP