Support for Code128C barcode and generate Aztec coded barcode using Aspose.BarCode for Java 8.2.0

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.BarCode for Java logo We are pleased to announce the release of Aspose.Barcode for Java 8.2.0. This release supports generating and reading Aztec barcode type. This release supports checksum validation for OneCode and AustraliaPost coded barcodes. Support to apply Metered key has also been incorporated in this release.

Generate Aztec barcode

Aspose.Barcode for Java allows you to generate Aztec barcode. You can set BarCodeBuilder.SymbologyType to Aztec to generate Aztec barcode e.g.


// Initialize BarCode builder class object
BarCodeBuilder builder = new BarCodeBuilder();

// Set the barcode text
builder.setCodeText("25");

// Set symbology type as Aztec 
builder.setSymbologyType(Symbology.Aztec);

// save barcode
builder.save("Aztec.png");

A property setAztecSymbolMode has been introduced to allow only numbers from 0 to 255 while using Aztec barcode. When setAztecSymbolMode property is set, reader automatically detects Runes. Following is the code demonstration.


// Create an instance of BarCodeBuilder class.
BarCodeBuilder b = new BarCodeBuilder();

// Set the Code text.
b.setCodeText("25");

// Set the barcode type.
b.setSymbologyType(Symbology.Aztec);

// set the AztecSymbolMode property.
b.setAztecSymbolMode(AztecSymbolMode.Rune);

// Save the barcode as PNG image.
b.getBarCodeImage().save("testRune25.png");

Checksum validation for OneCode and AustraliaPost barcodes

Aspose.Barcode for Java now supports checksum validation for OneCode and AustraliaPost barcodes. Property setChecksumValidation has been introduced to perform validation on OneCode and AustraliaPost barcodes. Following is the sample code demonstrating how setChecksumValidation can be set to off and on to perform validation.


// Create an instance of BarCodeReader class and load an existing oncecode barcode.
BarCodeReader r = new BarCodeReader("onecode.png", DecodeType.ONE_CODE);

// Set the ChecksumValidation property to Off.
r.setChecksumValidation(ChecksumValidation.Off);

while (r.read())
{
        System.out.println(r.getCodeType() + ": " + r.getCodeText());
        System.out.println("CheckSum: " + r.getCheckSum());
}

Applying Metered Key

Aspose.Barcode for Java has introduced a new class Metered to apply metered key. Following is the sample code demonstrating how to set metered public and private key.


// Create an instance of Metered class
Metered matered = new Metered();

// Access the setMeteredKey property and pass public and private keys as parameters
matered.setMeteredKey("PublicKey", "PrivateKey");

Enhancements

Following is a list of improvements included in this release.

  • Process of reading Postnet barcode has been improved.

  • Process of reading DataMatix barcode has been improved.

  • Processing of Dutch KIX barcodes has been improved.

  • Functionality to process the Aztec barcode with long code text has been improved.

  • Functionality to read barcode from a PDF file has been improved.

  • Functionality to read EAN13 barcode along with supplement code text has been improved.

  • Process of generating AustraliaPost barcode has been improved.

To view a complete list of new features and fixes and to download the latest release, please visit Aspose.Barcode for Java 8.2.0 page in downloads section.

Aspose.BarCode for Java Resources

The resources you may need to accomplish your tasks: