Telepen

Telepen barcode in PHP: full ASCII input, check character, code example and SVG output

Telepen encodes the full ASCII range at a constant width per character, which makes the symbol length predictable from the payload length alone. Every symbol carries a modulo 127 check character. Telepen is a trademark of SB Electronic Systems.

Type Token

ItemValue
Type tokenTELEPEN
Enum caseBarcodeType::TELEPEN
FamilyLinear
Class\Com\Tecnick\Barcode\Type\Linear\Telepen

Input

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

Examples

Letters and digits

<?php

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

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

echo $bobj->getInlineSvgCode();

Telepen barcode encoding ABC123

Errors

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

PayloadMessage
caf\xC3\xA9Invalid character: 195

See Also