Browse our Products

Aspose.BarCode for Node.js via Java 24.8

All Changes

KeySummaryCategory
BARCODENET-37649The images that are generated should be being compared with reference imagesEnhancement
BARCODENET-38022AustralianPostShortBarHeight is ignoredBug
BARCODENET-39039Method SpecificParametersUI.DataMatrix() returns DataMatrixParametersUIEnhancement
BARCODENET-39056Update HighQuality preset implementation for QR recognition engineEnhancement + Bug

Public API changes and backwards compatibility

QR recognition

Fixed HighQuality preset for QR recognition engine.

example1()
{
    let filePath = ReleaseNotes.folder + "qr.png";
    ta.checkPath(filePath);
    let reader = new BarCodeReader(filePath, null,DecodeType.QR);
    reader.setQualitySettings(QualitySettings.getHighQuality());
    let results = reader.readBarCodes();
    for (const result of results) {
       console.log(result.getCodeText());
    }
}

AustraliaPost generation

Fixed AustraliaPost generation: at this time Parameters.Barcode.AustralianPost.AustralianPostShortBarHeight parameter works correctly.

example2()
{
   let generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "6212345678AP");
   generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
   generator.getParameters().getBarcode().getBarHeight().setPixels(100);
   generator.getParameters().getBarcode().getAustralianPost().getAustralianPostShortBarHeight().setPixels(10);
   generator.getParameters().getBarcode().getPadding().getLeft().setPixels(10);
   generator.getParameters().getBarcode().getPadding().getTop().setPixels(10);
   generator.getParameters().getBarcode().getPadding().getRight().setPixels(10);
   generator.getParameters().getBarcode().getPadding().getBottom().setPixels(10);
   let imagePath = ReleaseNotes.folder + "AustraliaPost-Nodejs.png";
   generator.save(imagePath, BarcodeImageFormat.PNG)
}