OnBarcode provides several UPC-A barcode generating component, library, and SDK for you.
Category |
Parameter |
Value |
Comments |
Basic
|
DATA
|
Type: string
Default: "12345"
|
Barcode value to encode
UPC-A Valid Data Char Set:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
UPC-A Valid data length:
- 11 digits only, excluding the last checksum digit.
|
TYPE
|
Type: int
Default: 7 (Code 128)
|
Linear barcode symbology type.
Set the value to 36 (UPC-A) or 37 (UPC-A with supplement code 2) or 38 (UPC-A with supplement code 5).
|
ADD-CHECK-SUM
|
Type: bool
Default: false
|
AddCheckSum property is not applied here. Online Barcode Generator will always add a check character in the last digit (modulo 10). |
|
UPC-A Related |
SUP-DATA
|
Type: string
Default: ""
|
Set the supplement data to encode. Valid values are 2 or 5 digits |
SUP-HEIGHT
|
Type: float
Default: 0.8
|
This is a multiplicator of the height of the bar module; The default is 0.8 (80% of Y - bar module height). |
SUP-SPACE
|
Type: float
Default: 15
|
The separation between the barcode and the supplement. Default is 15 pixel. |
|
Barcode Size Related |
UOM
|
Type: int
Default: 0 (PIXEL)
|
Unit of meature for all size related settings.
Valid values:
- 0 (PIXEL)
- 1 (CM)
- 2 (INCH)
|
X
|
Type: float
Default: 1
|
Width of barcode bar module (narrow bar), default is 1 pixel |
Y
|
Type: float
Default: 60
|
Height of barcode bar module, default is 60 pixel |
BARCODE-WIDTH
|
Type: float
Default: 0
|
Barcode image width.
If barcodeWidth setting is smaller than the barcode required minimum width, Online Barcode Generator will automatically reset to barcode minimum width. |
BARCODE-HEIGHT
|
Type: float
Default: 0
|
Barcode image height.
If barcodeHeight setting is smaller than the barcode required minimum height, Online Barcode Generator will automatically reset to barcode minimum height. |
LEFT-MARGIN
|
Type: float
Default: 0
|
Barcode image left margin size. |
RIGHT-MARGIN
|
Type: float
Default: 0
|
Barcode image right margin size. |
TOP-MARGIN
|
Type: float
Default: 0
|
Barcode image top margin size. |
BOTTOM-MARGIN
|
Type: float
Default: 0
|
Barcode image bottom margin size. |
RESOLUTION
|
Type: int
Default: 72
|
Barcode image resolution in DPI (Dots per inch). |
ROTATE
|
Type: int
Default: 0
|
Valid values:
- 0 (in roration angle 0 degree)
- 1 (in roration angle 90 degree)
- 2 (in roration angle 180 degree)
- 3 (in roration angle 270 degree)
|
|
Font Style |
SHOW-TEXT
|
Type: bool
Default: "true"
|
If true, display barcode data text under the barcode, otherwise do not display.
In parameter value, use "true" for true, "false" for false.
|
TEXT-FONT
|
Type: Font
Default: "Arial|9|regular"
|
Barcode text font style.
Specify the text font format in the following format:
&TEXT-FONT=Arial|9|regular
|
TEXT-MARGIN
|
Type: float
Default: 6
|
Space between barcode and barcode data text, default is 6 pixel |