Skip to main content

GS1-128-Plain

GS1-128-Plain encodes raw GS1 data supplied as a plain text string (with FNC1 characters already embedded by the caller).

Mandatory properties

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

PropertyTypeDescription
typestringMust be GS1-128-Plain.
textstringRaw GS1 data string. May contain dynamic text.
barHeightnumberBar height.

Optional properties

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

PropertyTypeDescription
optimizebooleanIf true, optimizes the encoding by selecting the most compact subset. Default is false.

Example

{
"type": "GS1-128-Plain",
"x": 10.0,
"y": 10.0,
"text": "011234567890123110LOT001",
"barHeight": 15.0,
"barWidth": 0.3
}