UPC Version A

DynamicPDF Barcode Creator supports the UPC-A, UPC-A supplement two, and UPC-A supplement five barcodes. The following examples illustrate all three.

UPC-A

The UPC-A barcode (UpcA class), also known as Universal Product Code version A, encodes a GTIN-12 number. The following example illustrates.

UpcA barcode = new UpcA("12345678901");
barcode.Draw(pngFilePath, 300, ImageFormat.Png);        
Dim barcode As UpcA = New UpcA("12345678901")
barcode.Draw(pngFilePath, 300, ImageFormat.Png)

UPC-A Supplement 2

A two-digit supplement barcode, represented by the UpcASupplement2 class, adds a two-digit barcode after the main UPCA barcode, as the following example illustrates.

UpcASupplement2 barcode = new UpcASupplement2("12345678901","12");
barcode.Draw(pngFilePath, 300, ImageFormat.Png);        
Dim barcode As UpcASupplement2 = New UpcASupplement2("12345678901","12")
barcode.Draw(pngFilePath, 300, ImageFormat.Png)

UPC-A Supplement 5

A five-digit supplement barcode, represented by the UpcASupplement5 class, adds a five-digit barcode after the main UPCA barcode, as the following example illustrates.

UpcASupplement5 barcode = new UpcASupplement5("12345678901","12345");
barcode.Draw(pngFilePath, 300, ImageFormat.Png);       
Dim barcode As UpcASupplement5 = New UpcASupplement5("12345678901","12345")
barcode.Draw(pngFilePath, 300, ImageFormat.Png)

In this topic