Barcode: ean-13 – AMT Datasouth PAL User Manual
Page 52

_barcode: EAN-13
46
the 13th digit to receive the check digit. Specifying short strings causes the string to be padded
with zeros and the last character to be replaced by the check digit.
If the RandWt4 or the RandWt5 flags are true, the last 4 or 5 digits before the check digit con-
tain a random weight or a price. This allows in-store marking of such items as meat or cheese. A
check digit for the random weight is calculated and replaces the character immediately preceding
the 4- or 5-digit field. Since a new check digit must be calculated for the entire, symbol, the
CheckDigit flag should always be set to true when using random weight symbols.
If the AddOn2 or the AddOn5 flags are true, a 2- or 5-digit add-on bar code is added to the right
of the EAN-13 symbol. Since the check digits for these add-on bar codes are implicit in the encod-
ing, no check digit is specified for the add-on portion. To specify the text for a bar code with a
supplement, simply add 2 or 5 digits to the end of a standard 13-digit EAN-13 number. (Don't for-
get that the character before the supplement will contain the normal check digit.)
The generated image includes leading and trailing quiet zones (white space). The size of the quiet
zone is 10 times NarrowWidth. If this results in a quiet zone of less than 0.10 inch (2.54 mm), the
user should leave additional white space before and after the bar code.
The following example generates 1.0 inch tall EAN-13 bar code with 0.013 inch narrow bars. A
check digit will be calculated.
(0123456789010) <> /EAN13
_barcode
The following example generates 1.13 inch tall EAN-13 bar code with 0.013 inch narrow bars and
a 4-digit random weight field. Both zeros in the symbol will be replaced by check digits.
(212345012340) </CheckDigit true>> /EAN13 _barcode
The following example generates 1.13 inch tall EAN-13 bar code with 0.013 inch narrow bars and
a 5-digit add-on bar code. Note that the 8 in the 13th position of the symbol is the check digit
check digit.
(978078211054890000) <>
/EAN13 _barcode