The code below will help you to implement an JavaScript app to generate barcode. Want to generate barcode in your JavaScript app? ByteScout Barcode SDK is designed for it. ByteScout Barcode SDK is the fully featured library to generate barcodes. Supports QR Code, Code 39, Code 128, UPC, GS1, GS-128, PDF417, Datamatrix and many other barcode types. Includes various options for barcode generation to ensure output quality, add barcodes to new or existing pdf files and images.
You will save a lot of time on writing and testing code as you may just take the JavaScript code from ByteScout Barcode SDK for generate barcode below and use it in your application. This JavaScript sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Enjoy writing a code with ready-to-use sample JavaScript codes.
Free trial version of ByteScout Barcode SDK is available on our website. Documentation and source code samples are included.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
var bc = WScript.CreateObject('Bytescout.BarCode.Barcode'); // set symbology to Code39 bc.Symbology = 1; // 1 = Code39 symbology type // set barcode value to encode bc.Value = "012345"; // Saving Code39 barcode to 'Code39.png' bc.SaveImage ("Code39.png"); // Encoding '012345' using Aztec symbology // set symbology to Aztec (2D) bc.Symbology = 17; // 17 = Aztec // set barcode value to encode bc.Value = "012345"; // Encoding '012345' using Aztec symbology" & vbCRLF & bc.GetValueRestrictions(17), where 17 = Code39 symbology bc.SaveImage ("Aztec.png"); bc = null
60 Day Free Trial or Visit ByteScout Barcode SDK Home Page
Explore ByteScout Barcode SDK Documentation
Explore Samples
Sign Up for ByteScout Barcode SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Barcode SDK Home Page
Explore ByteScout Barcode SDK Documentation
Explore Samples
Sign Up for ByteScout Barcode SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: