Linear BarCode Types Supported

The following is a short description of some of the barcode types:

Type Short Description
CODE128 Code 128 is a full ASCII barcode type. This barcode selection will always calculate the mandatory check character (modulus 103). Code 128 has several capabilities when the character set is "0" for automatic (the default setting), these include:
UCC/EAN-128 Encoding:
to encode alpha-numeric UCC/EAN128, the character set must be "0" or "AUTO" for automatic (the default setting). ASCII 202 or character Ê is recognized as the FNC1 before each AI. When a barcode begins with an AI, the required start C is included automatically. For example, the UCC number of (8100)712345(21)12WH5678 should be entered as: Ê8100712345Ê2112WH5678. In most cases, the AIs will be properly represented in the human readable text. If the parenthesis is not around the correct number for the AI, enter the following extended ASCII character as the FNC1 for the correct number of digits in your AI:
ASCII 212 or ~212 = 2 digits        ASCII 213 or ~213  = 3 digits
ASCII 214 or ~214 = 4 digits        ASCII 215 or ~215  = 5 digits
ASCII 216 or ~216 = 6 digits
      ASCII 217 or ~217  = 7 digits
For example, to encode (1277)56, enter Ö127756.
However, there are exceptions.
When using the servlet, the FNC1 must be encoded as ~nnn where nnn is the ASCII code to encode. This is because certain characters are reserved in HTML for special purposes. For example, the UCC number of (8100) 712345 (21) 12WH5678 should be entered as: ~2148100712345~2122112WH5678.
Process Tilde Options
- when the symbology is Code 128, the character set is AUTO and processTilde is enabled (the default setting), the following options are available:
  • Encode ASCII characters: the format ~ddd may be used to specify the ASCII code of the character to be encoded. For example, if entering the following text in the Data field: 128~029TEST it will actually be encoding 128GSTEST where GS is a delimiter ASCII 29 character. Other commonly used ASCII codes are ~032 the space, ~202 the FNC1, ~197 the FNC2, ~009 the tab and ~013 which is a return function. For encoding other functions, please refer to the ASCII table.
  • Create a Mod 10 Check digit: to create a Mod 10 check digit for xx number of characters add the following to the DataToEncode: ~mnn (where nn is a 2 digit number representing the number of characters preceding the tilde in which to base the Mod 10 calculation). The additional MOD 10 check digit is commonly used in UCC or EAN barcode types.
CODE39 Code 39 is an alphanumeric barcode that can encode numbers, upper case letters, and the following special symbols: _ . * $ / % +. If the CHECK_CHAR flag is set to true, the Java BarCode Class will calculate the optional check character (modulus 43) which is recommended for LOGMARS.
CODE39EXT Extended Code 39 encodes the full 128 character ASCII character set.
INTERLEAVED25 or ITF Interleaved 2 of 5 code is a numeric only bar code. If the CHECK_CHAR flag is set to true, the Java BarCode Class will calculate the optional modulus 10 check character.
UPCA UPC-A is used for marking retail products in the USA.
UPCE The UPC-E code is a compressed barcode which is intended for use on small items. Compression works by squeezing extra zeroes or ones out of the barcode and then automatically re-inserting them at the scanner. It will automatically switch to the correction suppression mode depending on if the first digit is a zero (0) or a one (1).
EAN8 EAN-8 is a shortened version of the EAN-13 code.
EAN13 EAN-13 encodes 13 digits: the first two or three are a country code which identify the country in which the manufacturer is registered (not necessarily where the product is actually made). The country code is followed by 9 or 10 data digits (depending on the length of the country code) and a checksum digit.
MSI The MSI Code is a numeric barcode that has been used primarily in libraries and retail applications such as grocery store shelves. If the CHECK_CHAR flag is set to true, the Java BarCode Class will calculate the modulus 10 check character.
CODE11 Code 11 is a numeric, high density code with one special character "-". If the CHECK_CHAR flag is set to true, the Java BarCode Class will calculate check character. If the value to be encoded is longer than 10 digits, a second check character will be calculated and added.
CODE93 Code 93 is a more compact version of Code 39. It encodes exactly the same characters as Code 39, but uses 9 barcode elements per character instead of 15. If the CHECK_CHAR flag is set to true, the Java BarCode Class will calculate the two required checksum characters.
IND25 Industrial 2 of 5 (also called Code 2 of 5) is a numeric-only barcode that has been in use a long time. Unlike Interleaved 2 of 5, all of the information is encoded in the bars; the spaces are fixed width and are used only to separate the bars. The code is self-checking and does not include a checksum.
CODABAR Codabar is a discrete, numeric code with special characters (-$:/.+). If the CHECK_CHAR flag is set to true, the Java BarCode Class will calculate the optional modulus 16 check character.
POSTNET and PLANET This barcode type is specific to the USPS. For barcodes to be easily scanned at the US post offices, they must be between 22 and 24 bars per inch. The default X dimension setting may need to be adjusted accordingly. The resolution may also need to be adjusted.
UCC128 This symbology option encodes an even number of number digits and includes the FNC1 character in set C as required. Use Code 128 Auto to encode additional FNC1 codes or data containing text or odd numbers. Use the UCC128 function only for UCC-128 applications where the input data is an even number such as in SSCC-18 and SCC-14 barcodes. For example, to encode an SSCC-18 barcode, you would enter 00000123455555555558 as the data input. For more information, please visit UCC/EAN 128 website.
ONECODE OneCode is the United States Post Office's new barcode solution. It is also known as the USPS 4-State Customer Barcode (abbreviated USPS4CB, 4CB or 4-CB). For more information, please visit the OneCode website. For barcodes to be easily scanned at the US post offices, they must be between 22 and 24 bars per inch. The default X dimension setting may need to be adjusted accordingly. The resolution may also need to be adjusted.