Intelligent Mail Barcode, pre-processed

Pre-processed Intelligent Mail Barcode in PHP: bar string input, code example and SVG output

The same symbol approached from the other end. The payload is the finished bar string, 65 characters of A, D, F and T for ascender, descender, full bar and tracker, and the library only draws it. Use it when the encoding has already been done by something else.

Type Token

ItemValue
Type tokenIMBPRE
Enum caseBarcodeType::IMBPRE
FamilyPostal
StandardUSPS-B-3200
Class\Com\Tecnick\Barcode\Type\Linear\ImbPre

Input

ItemValue
Character setA, D, F and T
Lengthexactly 65 characters
Checknone; the input is already encoded
Extra parametersnone

Examples

A prepared bar string

<?php

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

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

echo $bobj->getInlineSvgCode();

Intelligent Mail Barcode, pre-processed barcode encoding AADTFFDFTDADTAADAATFDTDDAAADDTDTTDAFADADDDTFFFDDTTTADFAAADFTDAADA

Errors

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

PayloadMessage
AADTInvalid character sequence

See Also