The {barcode} tag writes EAN-13, EAN-8, UPC-A and Code 128 barcodes
as inline SVG - sharp at any size and on paper, no font, no image library. A scanner or a
phone reads them straight from the screen.
| Product | Barcode |
|---|---|
| Espresso beans, 1 kg | |
| Oat milk, 1 l | |
| Design Patterns | |
| Paper filters |
{barcode $ean, height=50} - twelve or thirteen digits are an EAN-13;
given without its check digit, the tag adds it.
{barcode $parcel, height=70} - letters, digits and punctuation;
runs of digits are packed two to a symbol.
| Type | Barcode | Tag |
|---|---|---|
| EAN-8 | {barcode '9638507', type='ean8'} |
|
| UPC-A | {barcode '03600029145', type='upca'} |
|
| Bars only, in colour | {barcode 'PAD', height=30, scale=3, plain, color='#2e7d32'} |