Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
aspose.barcode
Advanced tools
Readme
Aspose.Barcode for Node.js via Java is implemented by using nodejs-java bridge. It allows developers to quickly and easily add barcode generation and recognition functionality to their Node.js applications.
It's supported the different kinds of symbologies. The BarCode Code text (data which will be encoded to barcode image) should be set. Its appearance-related properties like font, back color, forecolor, alignment, and location (hide, above, below) etc. can also be modified. The checksum is supported. Barcode Caption and its font, back color, fore color, alignment, and location (hide, above, below) can be managed. The bar height of the barcode images can be customized. X-dimension, Y-dimension (for 2D BarCodes) are also supported. Code128 encoding is exceptionally optimized. Wide to Narrow Ratio can be achieved for supported symbologies. DataMatrix barcode with X12, EDIFACT and Base 256 encoding Available a lot of different Barcode types for recognizing and generating.
BarcodeReader reads most common 1D, 2D barcodes anywhere at any angle from an image. Specify an area in the image to scan the barcode Get region information for the barcodes recognized in the image
Manipulate the barcode image borders, border color, style, margins, width, etc. Barcode image color, back color, and bar color can be modified. Rotate barcode images to any degree. High-quality barcode images. Anti-Aliasing for barcode images. Barcode image margins can be managed. Customized resolution. Size in inches and millimeters. Auto Sizing of barcode images. Create barcode images in any desired image format like BMP, JPEG, GIF, PNG
JPEG PNG BMP GIF
JPEG PNG BMP GIF
Aspose.BarCode supports both encoding and decoding (generation and recognition) for all the listed symbologies.
npm i aspose.barcode
in root of your project.const barcode = require("aspose.barcode");
to your scriptconst barcode = require("aspose.barcode");
const test_assist = require('./tests_assist');
const fs = require("fs");
let BarcodeGenerator = barcode.AsposeBarcode.Generator.BarcodeGenerator;
let BarcodeReader = barcode.AsposeBarcode.Reader.BarcodeReader;
let EncodeTypes = barcode.AsposeBarcode.Generator.EncodeTypes;
test_assist.set_license();
let generator = new BarcodeGenerator(EncodeTypes.CODE_128, "12367891011");
let file_path = "./resources/generating/setBarcodeType.png";
generator.save(file_path, "PNG");
let image_data_base64 = fs.readFileSync(file_path).toString('base64');
let reader = new BarcodeReader(image_data_base64, null, DecodeType.ALL_SUPPORTED_TYPES);
if (reader.read())
{
console.log("Recognized barcode code text: " + reader.getCodeText(false) + "\n");
console.log("Recognized barcode code type: " + reader.getCodeTypeName() + "\n");
}
const barcode = require("aspose.barcode");
let Reader = barcode.AsposeBarcode.Reader;
let BarcodeReader = barcode.AsposeBarcode.Reader.BarcodeReader;
let full_path = "./resources/recognition/code11.png";
let reader = new BarcodeReader(full_path, null, null);
reader.setQualitySettings(Reader.QualitySettings.getHighPerformance());
reader.getQualitySettings().setAllowMedianSmoothing(true);
reader.getQualitySettings().setMedianSmoothingWindowSize(5);
while (reader.read())
{
console.log(reader.getCodeText(false));
console.log("\n");
console.log(reader.getCodeTypeName());
}
reader.close();
const barcode = require("aspose.barcode");
let BarcodeGenerator = barcode.AsposeBarcode.Generator.BarcodeGenerator;
let EncodeTypes = barcode.AsposeBarcode.Generator.EncodeTypes;
let generator = new BarcodeGenerator(EncodeTypes.CODABAR, "12367891011");
let type_expected = EncodeTypes.CODE_128;
generator.setBarcodeType(type_expected);
generator.save("./resources/generating/test4.png", "PNG");
let type_actual = generator.getBarcodeType();
console.log("type_expected = " + type_expected + "\n");
console.log("type_actual = " + type_actual + "\n");
Product Page | Product Documentation | Blog |API Reference | Source Code Samples | Free Support | Temporary License
FAQs
barcode generation and recognition component
The npm package aspose.barcode receives a total of 223 weekly downloads. As such, aspose.barcode popularity was classified as not popular.
We found that aspose.barcode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.