ICEfaces PDF Viewer Application utilizes the [ICEfaces|http://www.icefaces.org] framework and ICEpdf core to render PDF documents in a Rich Web application. *_ICEfaces 4.0_* or greater is needed to compile this example. The PDF rendering is controlled by the Servlet *{_}org.icepdf.examples.jsf.viewer.servlet.PdfRenderer{_}* and all of the document controls and UI features are implemented in JSF using the ICEfaces framework.
Update the Apache Ant build.properties variable _common.build.file_ to point to the location of build-common.xml located in the *\[install_dir\]/icefaces/samples/etc/* directory. The common ICEfaces build script is very flexible having build targets for most major Servlet containers. For example ">ant tomcat6.0" will build a Tomcat 6.0 compatible ware in the *\[install_dir\]/icepdf/examples/icefaces/dist/* directory.
\\ !servlet_demo.png!\\
The source code for the example is located in the *\[install_dir\]/icepdf/examples/icefaces/* directory.
[ICEfaces|http://www.icefaces.org] is available at *[http://www.icefaces.org/downloads/]*.
The source code for the example is located at [http://anonsvn.icesoft.org/repo/icepdf/trunk/icepdf/examples/loadingEvents/].