The Seam Framework utilizes the iText library to allow PDF documents to be generated directly from the Facelets pages. iText is a pure Java library that provides an API for generating and manipulating Adobe PDF files.
Note
For more information on iText, visit http://www.lowagie.com/iText/
In order to use iText for PDF generation within Seam, we first need to copy the iText JAR files into our web application's class path and enable the document servlet. This is one of the instances where SeamGen doesn't currently configure an application completely for us.
To use Seam's PDF generation tools, we need to ensure that the itext.jar
and itext-rtf.jar
(that is, the iText JAR files) are within the web application's classpath. It's important to note that the web application's classpath is different to the EAR's classpath if you are deploying an application as an EAR file. To place these files within the web application's classpath, we can either place...