Multifunctional Barcode Generator with jQuery and Html5 Canvas - JsBarcode

Multifunctional Barcode Generator with jQuery and Html5 Canvas - JsBarcode
File Size: 10.5 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Just another barcode generator plugin to creates various types of barcodes using jQuery and Html5 canvas element.

Supported barcode types:

  • CODE128 (B)
  • EAN (13)
  • UPC-A
  • CODE39
  • ITF (Interleaved 2 of 5)
  • ITF14

See also:

Basic Usage:

1. Include the jQuery javascript library and jQuery JsBarcode plugin in the document.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="JsBarcode.js"></script>

2. Include the CODE128.js if you want to generate a CODE 128 barcode.

<script src="CODE128.js"></script>

3. Create an empty IMG tag in the document.

<img id="barcode"/>

4. Draw a barcode in the IMG tag. You can save the barcode as a PNG file.

<script>
$(document).ready(function(){
$("#barcode").JsBarcode("jQueryscript.net!",{
width:2,
height:100,
quite: 10,
format:"CODE128",
backgroundColor:"#fff",
lineColor:"#000"
});
});
</script>

Change log:

2014-06-02

  • Ensured that the CODE128 parameter is a string

This awesome jQuery plugin is developed by lindell. For more Advanced Usages, please check the demo page or visit the official website.