60
addBarcode
Adds barcode printing to the command buffer.
Syntax
public void addBarcode
(String data, int type, int hri, int font, int width
, int height) throws EposException
Parameter
data : Specifies the barcode data as a string.
Specify a string that follows the barcode standard specified by the type parameter. If the specified
string does not conform to the standard, a barcode will not be printed.
Barcode type Description
UPC-A
When an 11-digit number is specified, a check digit is auto-
matically added.
When a 12-digit number is specified, the 12th digit is pro-
cessed as a check digit but the check digit is not validated.
UPC-E
Specify 0 as the first digit.
Specify the manufacturer code in the digits 2 to 6.
Specify (right-align) the item code in the digits 7 to 11. The
number of item code digits varies depending on the manu-
facturer code. Specify 0s in empty digits.
EAN13
When an 11-digit number is specified, a check digit is auto-
matically added.
When a 12-digit number is specified, the 12th digit is pro-
cessed as a check digit but the check digit is not validated.
JAN13
EAN8
When a 7-digit number is specified, a check digit is auto-
matically added.
When an 8-digit number is specified, the 8th digit is pro-
cessed as a check digit but the check digit is not validated.
JAN8
CODE39
When the first character is *, the character is processed as
the start character. In other cases, a start character is auto-
matically added.
ITF
Start and stop codes are automatically added.
Check digits are not added or validated.
CODABAR
Specify a start character (A to D, a to d).
Specify a stop character (A to D, a to d).
Check digits are not added or validated.
CODE93
Start and stop characters are automatically added.
A check digit is automatically calculated and added.