Rendering Barcode (canvas-print-barcode.html)
Draw a barcode in HTML5 Canvas and perform a test print.
In the following example, an EAN13, JAN13 or UPC-A is drawn.
1
4
1
Open the following URL page using the Web browser.
http://[Web server IP address]/canvas/canvas-print-barcode.html
2
"EPSON ePOS-Print Sample Program" appears.
Set items on the right of the page. The following items can be set:
Item
Position
Module Size
Data
Clear
Reset
Specify the rendering coordinates.
Specify the width and height of the bars.
Specify EAN13 (JAN13) data.
For 12-digit numerical data, calculate and add the check digit.
For 13-digit numerical data, verify the check digit.
For UPC-A data, add 0 at the start of the string to make it 12-or 13-
digit data.
Clears the image drawn in the Canvas.
Clears the image drawn in the Canvas.
In addition, the settings are reset to their default values.
Description
Appendix
2
3
249