Barcode Generation and Recognition for Node.js via Java
Generate and read barcodes in Node.js in a few lines
// npm i aspose.barcode
const barcode = require("aspose.barcode");
const { BarcodeGenerator, EncodeTypes, BarCodeImageFormat } = barcode.AsposeBarcode;
// Create instance of BarcodeGenerator
const gen = new BarcodeGenerator(EncodeTypes.CODE_128, "SKU-12345");
// Set barcode x-dimension in pixels
gen.getParameters().getBarcode().getXDimension().setPixels(4);
// Generate barcode and Save to PNG
gen.save("barcode.png", BarCodeImageFormat.PNG);
> npm i aspose.barcode
Java-grade barcode accuracy for Node backends
Node.js services often deal with real-world input: mobile photos, warehouse labels, scanned documents, and PDFs. This SDK exposes a mature Java barcode engine to Node.js so you can keep your stack and still decode reliably under imperfect conditions.
Standards? Covered.
Aspose.BarCode for Node.js via Java supports all major image formats, including vector formats like SVG and EMF, as well as PDF. Use our API to recognize files from scanners or cameras with ease. Here are all supported barcode symbologies, including 1D, 2D, postal, and composite types. Each one can be generated and recognized across all supported platforms.
Matrix / 2D Codes
- QR Code, MicroQR, rMQR
- Data Matrix, Industrial Data Matrix (DPM)
- Aztec
- Han Xin
- MaxiCode
- DotCode
Linear / 1D Codes
- UPCA, UPCE
- EAN13, EAN14, EAN8
- Code 128
- DataBar
- ITF
- Postal
Industry & Composite Codes
- GS1
- ECI
- Composite barcodes
- HIBC
- SwissQR
- Royal Mailmark
Deploy to any Node.js environment
Run on Windows, Linux, macOS, or Solaris wherever Node.js and Java are available. Install from npm and call the API from microservices, background workers, and batch pipelines through a Node.js to Java bridge.
- Node.js 18 or higher
- Java JDK 8 or higher (OpenJDK, Amazon Corretto, BellSoft Liberica, Oracle JDK)
- Install via npm: `npm install aspose.barcode`
- Java engine with a JavaScript-friendly API via the Node.js-to-Java bridge
Live Code Demo
Paste text → get a barcode. Drop a file → get decoded data. Both examples come with auto-generated sample code so you can copy straight into your project.
Barcode workflows for APIs, jobs, and documents
Build reliable barcode flows in Node.js without moving processing to external services. Generate print-ready labels, validate incoming codes, and decode from images or PDFs in backend pipelines.
- Generate 1D and 2D barcodes for labels, tickets, invoices, and product packaging
- Read barcodes from raster images and PDF documents
- Tune recognition for speed or tolerance using presets and detailed settings
- Output to common raster formats and vector formats (SVG, EMF) when needed
- Return rich results: code text, symbology, region, and orientation
High-throughput recognition for services and batches
Scale from single requests to bulk processing. Detect multiple barcodes per image, focus on regions to speed up large frames, and switch recognition presets per workload.
Generate barcodes in raster and vector formats
Region-of-interest scanning for large images
Validation options to reduce false positives
Auto-rotation and multi-barcode detection
Multiple symbologies in one pass (for example, QR and Code 128)
QualitySettings presets for speed vs. accuracy