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.
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 legacy Applet code can be downloaded below:
© Copyright 2017 ICEsoft Technologies Canada Corp.