ITF-14 carries a GTIN-14, the trade item number of a shipping case or a pallet layer. It is Interleaved 2 of 5 inside a heavy rectangular frame, the bearer bar, which is there because corrugated board prints badly: without it a partial scan can be read as a valid shorter code.
The GTIN comes from a GS1 company prefix, which a GS1 member organisation issues.
Type Token
| Item | Value |
|---|---|
| Type token | ITF14 |
| Enum case | BarcodeType::ITF14 |
| Family | Linear |
| Standard | GS1 General Specifications |
| Class | \Com\Tecnick\Barcode\Type\Linear\ItfOneFour |
Input
| Item | Value |
|---|---|
| Character set | digits |
| Length | 13 digits, or 14 with a valid check digit |
| Check | modulo 10, appended when the payload is 13 digits and verified when it is 14 |
| Extra parameters | none |
Examples
A GTIN-14
<?php
require_once __DIR__ . '/vendor/autoload.php';
$barcode = new \Com\Tecnick\Barcode\Barcode();
$bobj = $barcode->getBarcodeObj(
type: 'ITF14',
code: '09312345678907',
width: -1,
height: -1,
color: 'black',
padding: [0, 0, 0, 0],
)->setBackgroundColor('white');
echo $bobj->getInlineSvgCode();
Errors
These payloads raise \Com\Tecnick\Barcode\Exception:
| Payload | Message |
|---|---|
1234567890123A | Input code must be a number |
09312345678900 | Invalid check digit: 7 |
See Also
- tc-lib-barcode : the library overview.
- Rendering Options : size, colour, padding.
- Output Formats : every renderer.
- Interleaved 2 of 5 : the underlying symbology.
- GS1-14 : the same number in a GS1-128 symbol.
- SSCC-18 : the logistic unit number.
- API reference : the generated class documentation.