Skip to content
Johan Lindell edited this page Apr 24, 2016 · 24 revisions

Width (default: 2)

The width option is the width of a single bar.

Examples:
JsBarcode("#barcode", "Smallest width", {
  width: 1
});

JsBarcode("#barcode", "Wider barcode", {
  width: 3
});
Result:

Smallest width Wider barcode

Height (default: 100)

The height of the barcode.

Examples:
JsBarcode("#barcode", "Wider barcode", {
  height: 150
});

JsBarcode("#barcode", "Smallest width", {
  height: 25
});
Result:

Tall barcode Short barcode

Clone this wiki locally