BarcodeEAN13 Constructor (String)

PDF File Writer

BarcodeEAN13 Constructor (String)

Barcode EAN13 Constructor

Namespace:  PdfFileWriter
Assembly:  PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public BarcodeEAN13(
	string Text
)

Parameters

Text
Type: SystemString
Input text
Remarks

Convert text to code EAN-13 or UPC-A.

All characters must be digits.

The code is EAN-13 if string length is 13 characters and first digit is not zero.

The code is UPC-A if string length is 12 characters or string length is 13 and first character is zero.

The last character 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 digit to 0.

See Also