File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

JSP Page to PDF File

Niklesh Mudiraj

Joined: Jun 26, 2011
Posts: 12

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.

[] [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

Joined: Sep 21, 2011
Posts: 2413
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.
I agree. Here's the link:
subject: JSP Page to PDF File
It's not a secret anymore!