I am printing the report through JSP dynamically by accessing database. I am using Struts
Framework and the Java codes are in Action classes. Finally the output is displayed through
JSP pages. It is coming nicely on screen but while printing it does not coming properly.
I just want to display the report in PDF format instead of JSP -> HTML format or the JSP
page should contain a PRINT IN PDF
button/link to do the job.
I am using iText
to create PDF file in other modules but it is too time consuming. This time
I want to capture the JSP output in my page and print in PDF format. How to capture the JSP
output in the same JSP page to print in different format?
I was using iTextrenderer
but not been able to print. It successfully converts a URL
containing HTML file but how to create the InputStream
from the JSP output and use in
iText Renderer
or any other method? Is it possible to do that? Please suggest the solution.