Skip to main content

Code128

Mandatory properties

The following properties are available in addition to the common label object properties and common barcode properties.

PropertyTypeDescription
typestringMust be Code128.
textstringBarcode data. May contain dynamic text.
barHeightnumberBar height.

Optional properties

The following properties are available in addition to the common barcode properties.

PropertyTypeDescription
encodingstringEncoding mode. Allowed values: AUTO, A, B, C. Default is AUTO.

Example

{
"type": "Code128",
"x": 10.0,
"y": 10.0,
"text": "ABC-12345",
"barHeight": 15.0,
"barWidth": 0.3
}