Symbologies for Barcodes

Specify Symbologies for Barcodes

What is Barcode

Barcode is a system for automatic identification of items, such as books in a library, using printed bars of different widths that represent numbers. Barcodes are used for many reasons among them are, to speed up check out, to track sales and to help with inventory. The first set of numbers in a barcode is the manufacturer code, the second set of numbers in the barcode is the product code. The barcode was introduced in the early 80s and is often printed on the record sleeve only, sometimes also on the center record paper label.

What is Barcode Symbology

Barcode Symbology is the protocol that defines a standard for arranging the bars and spaces (between the bars) that comprise a particular type of barcode, such as UPCA, EAN, Code128 etc.

Aspose.BarCode and Barcode Symbologies

Aspose.BarCode supports nearly all popular barcode symbologies. All barcode generating classes like LinearBarCode , BarCodeGeneratorControl have a common property named as EncodeType that is used to set the symbology of a barcode. Developers can assign any symbology to SymbologyType property from the pre-defined symbologies supported by BarcodeGenerator. A list of all pre-defined symbologies is listed below.

SymbologiesDescription
CodabarSpecifies that the data should be encoded with Codabar barcode specification
Code11Specifies that the data should be encoded with Code11 barcode specification
Code128Specifies that the data should be encoded with Code128 barcode specification
Code39StandardSpecifies that the data should be encoded with Standard Code39 barcode specification
Code39ExtendedSpecifies that the data should be encoded with Extended Code39 barcode specification
Code93StandardSpecifies that the data should be encoded with Standard Code93 barcode specification
Code93ExtendedSpecifies that the data should be encoded with Extended Code93 barcode specification
EAN13Specifies that the data should be encoded with EAN-13 barcode specification
EAN8Specifies that the data should be encoded with EAN-8 barcode specification
BooklandEANSpecifies that the data should be encoded with BooklandEAN barcode specification
Interleaved2of5Specifies that the data should be encoded with Interleaved 2 of 5 barcode specification
MSISpecifies that the data should be encoded with MSI Plessey barcode specification
Standard2of5Specifies that the data should be encoded with Standard 2 of 5 barcode specification
UPCASpecifies that the data should be encoded with UPC-A barcode specification
UPCESpecifies that the data should be encoded with UPC-E barcode specification
PostnetSpecifies that the data should be encoded with Postnet barcode specification
PlanetSpecifies that the data should be encoded with Planet barcode specification
PDF417Specifies that the data should be encoded with Pdf417 barcode specification
DatamatrixSpecifies that the data should be encoded with Datamatrix barcode specification
QRSpecifies that the data should be encoded with QR barcode specification
AztecSpecifies that the data should be encoded with Aztec barcode specification

Set Code text

A barcode is the representation of characters in the form of bars and spaces between them. So, it is a simple fact that we would also have to assign some characters to Aspose.BarCode so that the input characters could be converted to a barcode. We know that Aspose.BarCode has three different classes (BarcodeGenerator, BarCodeControl) to create barcodes for different kinds of applications. All these classes have a common property, CodeText. All characters to be encoded to the barcode are assigned to the CodeText property of any barcode class.

Code text versus Symbology

Developers can assign any set of characters to CodeText property but only according to its symbology type. For example, If the EncodeType property of a barcode control is Symbology.EAN13, the valid character set of EAN13 specification is limited to numeric values and contains 13 digits only. If you attempt to shorter CodeText to it, zero will be added, if longer CodeText, the outbound part will be truncated.

When CodeText is too long or too short
todo:image_alt_text
Some symbologies of barcode accept longer CodeText. If CodeText is longer than the image width, it will be wrapped to the next line.
CodeText wrapping
todo:image_alt_text
Human readable CodeText is for human reading only, it will not affect the machine scanning process. Some 2D barcodes can contain a huge chunk of data, up to thousands of characters, you might choose not to show the code text. Visit here for how to control the appearance of CodeText. For the functionality differences in Aspose.BarCode for .NET and Aspose.BarCode for Java, please check out EditionType