GS1 DataBar Stacked Omnidirectional

GS1 DataBar Stacked Omnidirectional barcode in PHP: 14 digit GTIN input, code example and SVG output

Two rows, each of them tall enough to be read on its own, which is what the stacked form gives up. The separator pattern between them alternates, so a scanner can tell which row it is looking at.

Type Token

ItemValue
Type tokenDATABARSTACKOMNI
Enum caseBarcodeType::DATABARSTACKOMNI
FamilyLinear
StandardISO/IEC 24724
Class\Com\Tecnick\Barcode\Type\Linear\GsOneDataBarStackedOmni

Input

ItemValue
Character setdigits
Length13 digits, or 14 with a valid check digit
Checkmodulo 10, appended when the payload is 13 digits and verified when it is 14
Extra parameters1 (see below)

Extra Parameters

Appended to the type token after commas, as in DATABARSTACKOMNI,1.

PositionMeaningValuesDefault
12D component linkage flag1 sets the linkage bitunset

Examples

A GTIN-14 in two full-height rows

<?php

require_once __DIR__ . '/vendor/autoload.php';

$barcode = new \Com\Tecnick\Barcode\Barcode();
$bobj = $barcode->getBarcodeObj(
    type: 'DATABARSTACKOMNI',
    code: '00034567890125',
    width: -3,
    height: -3,
    color: 'black',
    padding: [0, 0, 0, 0],
)->setBackgroundColor('white');

echo $bobj->getInlineSvgCode();

GS1 DataBar Stacked Omnidirectional barcode encoding 00034567890125

Errors

These payloads raise \Com\Tecnick\Barcode\Exception:

PayloadMessage
0950110153001AInput code must be a number

See Also