title: Printing dynamically created output through JSP in PDF format directly
body: <p>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 <code>PRINT IN PDF</code> button/link to do the job. </p>
  
  <p>I am using <code>iText</code> 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?</p>
  
  <p>I was using <code>iTextrenderer</code> but not been able to print. It successfully converts a URL
  containing HTML file but how to create the <code>InputStream</code> from the JSP output and use in
  <code>iText Renderer</code> or any other method? Is it possible to do that? Please suggest the solution.</p>