Applet Example

Table of Contents

About the Applet Example

The Applet example demonstrates deployment of the ICEpdf Viewer as a Java Applet. This example is very similar to the Viewer Component Example but differs by extending the JApplet class.

The Applet example can be built with the provided ant build script. The default ant target is icepdf.applet.jar. Once the build runs successfully all needed jars and the respective HTML files are copied to the './dist' folder.


Signing the Jars
The build script does not attempt to sign the jar files, however most Applet deployment scenarios require jar signatures. More information on how to sign jars, with your own certificate, can be found here: http://java.sun.com/docs/books/tutorial/deployment/jar/signing.html

The example PDFApplet.html specifies the PDF file to open the param 'URL' and has a default value of 'http://www.icepdf.org/pdf/ICEpdf-Datasheet.pdf'. Make sure you have Internet access before attempting to run the demo, to avoid a document loading error.

The source-code for the example is located in the [install_dir]/icepdf/examples/applet/ directory.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2011 ICEsoft Technologies Inc.