UPC-A, UPC-E, and Composite Script Methods

The following script methods are specific to this barcode symbology. Additionally, you can use the Common Script Methods for Barcodes.

Tip: If using these script methods in a business rule, select the Rhino script engine.

Tip: Script methods with names beginning with get or is retrieve the current value for a property. Script methods with names beginning with set configure a value for the property.

Note: If using UPC-E, provide data on which zero suppression has already been performed.

Note: Composite barcodes have a 2D portion followed by a linear portion. In the barcode data, the 2D portion appears first and is followed by a composite delimiter (|) and then the linear portion.

Methods Description Values

getBarHeight()

setBarHeight(long)

The height of the bars in the barcode.

Thousandths of an inch (mil)

getExtension()

getExtension(String)

Whether a 2 or 5 digit extension is to be used. UPC extensions are used to extend the range of available part numbers that can be encoded.

Note: This property affects Max Chars.

None

+2

+5

getHumanReadable()

setHumanReadable(String)

 

Whether a text representation of the barcode is printed. The human readable text is in a fixed position below the barcode.

None or none

fixedBelow

getXdim()

setXdim(float)

The X-dimension or width of the narrowest bar in the barcode. The range of values available depends on the Document DPI of the label template. For example, a label template with a Document DPI of 203 has Line X-Dim values in increments of 4.9 mil (1000 mil / 203 dpi).

Thousandths of an inch (mil)