BarcodeEAN13 Constructor (Int32[])

PDF File Writer

BarcodeEAN13 Constructor (Int32)

Barcode EAN13 constructor.

Namespace:  PdfFileWriter
Assembly:  PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public BarcodeEAN13(
	int[] _CodeArray
)

Parameters

_CodeArray
Type: SystemInt32
Code array input.
Remarks

The constructor sets CodeArray and converts it to text.

CodeArray must be 12 elements long for both EAN-13 or UPC-A.

In the case of UPC-A the 12 elements of code array correspond one to one with the 12 digits of the encoded value.

In the case of EAN-13 the 12 code elements corresponds to element 2 to 13 of the text characters. The first text character controls how elements 2 to 5 of the code array are encoded. Please read the following article for full description. http://www.barcodeisland.com/ean13.phtml.

In this class, odd parity encoding is one code element equals one digit.

Even parity is code element equals digit plus 10.

The last code element is a checksum. The checksum must be given however the constructor calculates the checksum and override the one given. In other words, if you do not know the checksum just set the last element to 0.

See Also