Ikram ul Haq September 20, 20170 Comments

Generate Postal Barcode With Specific Height Using Aspose.BarCode for Java 17.8

Generate Postal Barcode With Specific Height Using Aspose.BarCode for Java 17.8

September 20, 2017
Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.BarCode for Java We are pleased to announce the release of Aspose.Barcode for Java 17.8. Aspose.BarCode versions brefore 17.8, it was not possible to set the barcode bar’s height while generating Postal barcodes like postnet, AustraliaPost etc. The major development in this release is the support to generate the postal barcode with specified height. Functionality to recognize GS1Code128 coded barcode has also been improved in this release.

Postal Barcode Generation With Specific Height

Previous versions of Aspose.BarCode, it was not possible to set the height of bars of Postal barcodes like Postnet, AustraliaPost, Planet, OneCode and RM4SCC. Aspose.Barcode for .NET 17.8 now allows developers to set the bar height. The said functionality is illustrated in the following code sample.



String codeText = "12345678";

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

// Set barcode text
barCodeBuilder.setCodeText(codeText);

// Set encoding type
BaseEncodeType encodeType = EncodeTypes.POSTNET;
barCodeBuilder.setEncodeType(encodeType);

// Set barcode Dimension and height
barCodeBuilder.setxDimension(1f);
barCodeBuilder.setBarHeight(40);

// Save the barcode image
barCodeBuilder.save("postnet.png");

Other Improvements

In addition to above, this release also fixes exceptions that were reported by our valued customers. Complete list of enhancements and fixes in this release is as follows.

  • Process of GS1Code128 coded barcode recognition has been enhanced. The functionality has been improved in such a way that it now recognize correct type of GS1Code128 coded barcode.
  • Process of generating EAN14 barcode has been improved.
  • Functionality to recognize DatabarStacked coded barcode has been improved.
  • Functionality of yDimension property has been enhanced. It is now working for 2D barcodes e.g. CodablockF.

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

Aspose.BarCode for Java Resources

The following API resources can be of help to you in getting started with Aspose.BarCode:

Leave a comment

Posted inAspose.BarCode Product Family
 

Related Articles