Aspose.BarCode  for Node.js via Java

Node.js Barcode Generator and Scanner API

Recognize or Generate 1D, 2D and Postal barcodes including Code128, Code93, Code39, QR Code from different images.

  Download Free Trial
  
 

Aspose.BarCode for Node.js via Java is an easily customizable barcode generator and decoder API. Developers can integrate its barcode generating and reading functionality in their applications via the nodejs-java bridge. It can be used to read common 1D, 2D, and postal barcodes from images at any angle. This barcode library allows developers to generate barcode images of over 60 types and saving them in various formats, such as JPG, PNG, GIF, BMP, and TIFF. It supports customizing different imaging features, such as barcode border color and style, margins, rotation angle, resolution, and barcode color.

Advanced Node.js Barcode API Features

Generate Swiss QR Code

Besides 2D barcodes and QR codes, the barcode library enables generating and reading Swiss QR codes. They are based on the QR (Quick Response) code specification and are used in Switzerland to facilitate payments between businesses and individuals. QR codes are two-dimensional barcodes that can be scanned with a smartphone or other device to quickly and easily access information or perform an action. Swiss QR codes are a national standard for electronic payments in Switzerland. They are used by businesses to receive payments from customers. When a customer scans a Swiss QR code, they are provided with payment information and can initiate a payment from their mobile banking app. This provides a convenient and secure way for businesses to accept payments from their customers. Swiss QR codes are commonly used in a variety of industries, including retail, hospitality, and healthcare. To generate a Swiss QR code, you will need to provide the necessary information, such as your business name, bank account details, and the amount of the payment. The Aspose QR Code generator will use this information to create a Swiss QR code that can be then scanned by your customers to initiate a payment. Once the QR code is generated, you can download it and use it in your business to accept payments from your customers.

QR Code Generation Live Example

The barcode library allows developers to generate a wide range of 2D barcodes, including Data Matrix, Aztec Code, PDF417, Macro PDF417, and others. It is especially useful for generating large or multiple barcodes that contain long or complex data values. The library provides a simple and intuitive interface for specifying the type of barcode to generate, entering the input data to store, and setting appearance-related parameters. This makes it a user-friendly and powerful tool for creating high-quality barcodes for various applications. The code sample below shows how to create QR codes.

Code to be executed - JavaScript


const barcode_ = require("aspose.barcode");
const aspose_barcode = barcode_.AsposeBarcode

let BarcodeGenerator = aspose_barcode.BarcodeGenerator;
let EncodeTypes = aspose_barcode.EncodeTypes;

// Create an instane of the BarcodeGenerator class
let generator = new BarcodeGenerator(EncodeTypes.QR, "");

// Specify the X-dimension 
// the smallest width of the unit of BarCode bars or spaces
generator.getParameters().getBarcode().getXDimension().setMillimeteres(2);

// Set codetext position
generator.getParameters().getBarcode().getCodeTextParameters().setLocation(CodeLocation.Below);

// Generate and save image
generator.save("example.png", aspose_barcode.BarCodeImageFormat.PNG);
Generation result

Optimize Barcode Reading

Aspose.Barcode for C++ is a comprehensive barcode library for working with barcodes in a wide range of applications. One of its key features is the ability to fine-tune the recognition process to optimize both the quality and speed of barcode detection. The library offers several advanced settings that can be used to optimize barcode scanning depending on the specific needs of an application. For example, the library provides special reading modes that enable fast scanning of high-quality linear barcodes. This can be useful in applications that need to quickly process large volumes of barcode data. Additionally, the library allows developers to specify target scanning regions and barcode types, which can improve the accuracy of the scan by focusing on the most relevant areas of the image. The API also supports detecting multiple barcodes in a single image, which can be useful in applications that need to process multiple barcodes simultaneously.

Barcode Recognition Live Example

The barcode reader API provides a set of features for scanning, detecting, and reading 1D, 2D, and postal barcodes. With just a few lines of code, developers can easily integrate this functionality into their applications and use it to detect and decode a wide range of commonly used barcodes. The API is designed to be user-friendly and intuitive, making it easy for developers to quickly and easily add barcode scanning capabilities to their applications.

Ready to recognize Recognizing Drop a file here or click to browse *

* By uploading your files or using the service you agree with our Terms of use and Privacy Policy.

Code to be executed - JavaScript

    
const barcode_ = require("aspose.barcode");
const aspose_barcode = barcode_.AsposeBarcode

let BarCodeReader = aspose_barcode.BarCodeReader;
let QualitySettings = aspose_barcode.QualitySettings;

let reader = new BarCodeReader("<file name>", null, DecodeType.AllSupportedTypes);
reader.readBarCodes().forEach(function (result, i, results)
{
    console.log(result.getCodeText());
    console.log(result.getCodeTypeName());
});

×
Barcode image

What People Are Saying

Don't just take our word for it. See what users have to say about APIs.

 
 
View Case Studies
  

Support and Learning Resources