UPC-A Size Setting Instruction

Generating and Printing UPC-A Barcodes

UPC-A barcode size is customizable in these OnBarcode UPC-A generation and recognization controls:

UPC-A Structure

A typical UPC-A has the following structure:
An UPC-A barcode includes four areas:
  • Number System: It is one digit only which identifies the "type" of product, e.g., o: Regular UPC codes, 5: Coupons, 9: Reserved, etc.
  • Manufacturer Code: It has five digits in all, which is assigned by the UCC Council to each manufacturer or company that distributes goods with a printed UPC-A barcode. All products produced by a given company will use the same manufacturer code.
  • Product Code: It includes five digits, which is a unique code assigned by the manufacture. And manufacturers can assign their product codes randomly as long as all of their products have different codes.
  • Check Digit: It is an additional digit used to verify the accuracy of the data encoded. And the checksum digit can be computed base on the rest digits of the barcode.

Structure of UPC-A

  • W : the width of UPC-A barcode image, including quiet zones.
  • X : the width of UPC-A narrowest bar; X min = 1 pixel.
  • C : the number of UPC-A encoded data characters, including the check digit; C = 12.
  • Q : the width of the quiet zone; Q > = 7X; Q (L) = 9X, Q (R) = 9X.



Barcode Width of UPC-A

GS1 specification defines the barcode width of UPC-A (W). Measured in pixel, it can be calculated as below.
  • UPC-A barcode without supplement data:

W = ( C * 7 + 11 ) X + 2Q       // C = 12, Q (L) = 9X, Q (R) = 9X.
    = ( 12 * 7 + 11 ) X + 9X + 9X
    = 95X + 18X
    = 113X

W min = 113X       // X = 1
= 113 pixel

  • UPC-A Supplement 2, W = 138X. W min = 138 pixel.
  • UPC-A Supplement 5, W = 165X. W min = 165 pixel.

As for our UPC-A barcode generators, the value of each quiet zone is default by 10X [Q (L) = 10X, Q (R) = 10X].Thus, the respective value of W in above calculation should be 115X, (135X + 15), (162X + 15).



Barcode Height of UPC-A

GS1 specification indicates that UPC-A barcode image height is not modular, and it should be 25.9 millimeters (1.0 inch), including the human readable interpretation. In addition, the height of any Supplement 2 or Supplement 5 image used must be within the image height dimensions of the primary UPC-A barcode, including the human readable interpretation.

However, there is no need for customers to worry about the requirements for height setting because our UPC-A barcode generation components will automatically adjust image height according to the specification. Customers, meanwhile, can change image height by setting Top or Bottom Margin.

OnBarcode offers details of Setting UPC-A Barcode Size in C#.




OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.