Advanced Barcode Examples

Demonstrating JsBarcode's method chaining API with multiple barcodes

Product with Add-On Code

EAN-13 barcode with EAN-5 add-on (common in retail)

Product Label with Multiple Codes

Multiple barcodes for product identification and lot tracking

Code Example

import { BarcodeAdvanced } from 'svelte-barcode-gen';

const operations = [
  {
    type: 'options',
    options: { font: 'OCR-B' }
  },
  {
    type: 'barcode',
    format: 'EAN13',
    value: '5901234123457',
    options: { fontSize: 18 }
  },
  {
    type: 'blank',
    size: 20
  },
  {
    type: 'barcode',
    format: 'EAN5',
    value: '12345',
    options: { height: 85, textPosition: 'top' }
  }
];

<BarcodeAdvanced {operations} />
← Back to Basic Demo