CODE 39 Extended with check character

Extended CODE 39 with the modulo 43 check character in PHP: input range, code example and SVG output

Extended CODE 39 with the modulo 43 check character appended. The check is computed over the expanded character sequence, the one actually drawn, rather than over the input text.

Type Token

ItemValue
Type tokenC39E+
Enum caseBarcodeType::C39EPlus
FamilyLinear
StandardANSI MH10.8M-1983, USD-3
Class\Com\Tecnick\Barcode\Type\Linear\CodeThreeNineExtCheck

Input

ItemValue
Character setthe 128 ASCII characters
Length1 to 30000 characters
Checkmodulo 43, appended by the library
Extra parametersnone

Examples

Mixed case with the check character

<?php

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

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

echo $bobj->getInlineSvgCode();

CODE 39 Extended with check character barcode encoding tc-lib-barcode

Errors

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

PayloadMessage
caf\xC3\xA9Invalid character: 195

See Also