Properties
An applet can easily display barcodes in HTML pages. However, applets do not always work on all web browsers.
Example of how to use the applet in HTML:
<APPLET
CODEBASE = "./"
ARCHIVE = "pdf417.jar"
CODE = "com.businessrefinery.barcode.pdf417.demo.DemoApplet.class"
NAME = "TestApplet"
WIDTH = 752
HEIGHT = 150
COL = 7
HSPACE = 0
VSPACE = 0
ALIGN = "top"
>
<PARAM NAME = "DATA" VALUE = "PDF417 Barcode Test">
<PARAM NAME = "X" VALUE = "0.03">
</APPLET>
The size must be specified when using the applet. Parameters can be provided in the Applet PARAM tag or from Javascript. For example, the following code will set a new value for the barcode:
TestApplet.setParameter(BARCODE,"new value");
TestApplet.refresh();
An example of using the applet is provided in the ZIP file download. The file is named "AppletTest.html".