beautypg.com

Barcode: upc-a – AMT Datasouth PAL User Manual

Page 60

background image

_barcode: UPC-A

54

places the 12th digit with the new check digit. The data string should contain a dummy character in
the 12th digit to receive the check digit. Do not assume that only 11 digits are needed. Specifying
short strings causes the string to be padded with zeros and the last character being 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 UPC-A 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 12-digit UPC-A number. (Don't
forget 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.13 inch tall UPC-A bar code with 0.013 inch narrow bars. A
check digit will be calculated.

(012345678900) <>
/UPCA _barcode

The following example generates 1.13 inch tall UPC-A 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>> /UPCA _barcode

The following example generates 1.13 inch tall UPC-A bar code with 0.013 inch narrow bars and a
5-digit add-on bar code. Note that the zero in the symbol will be replaced with a check digit.

(1234567891012345) </CheckDigit true>> /UPCA _barcode