Browse our Products

Aspose.BarCode for Java 7.9.0 Release Notes

Aspose.BarCode for Java has been updated to version 7.9.0 and we are pleased to announce it. The following is a list of changes in this version of Aspose.BarCode.

Features and Improvements

KeySummaryCategory
BARCODENET-34430Implement new algorithm to recognize 3D-distorted Aztec codesNew Feature
BARCODENET-34421Generate data matrix barcode with text on its right sideNew Feature
BARCODENET-34433Not able to recognize rectangular Aztec codesEnhancement
BARCODENET-34422Verify APTCACheck for Aspose.Barcode DLLEnhancement
BARCODENET-34410Unable to Read the QR barcode successfully from a PDF fileEnhancement
BARCODENET-34398Unable to Read the QR barcode successfully from a TIFF imageEnhancement
BARCODENET-34390Unable to read QR Code barcode from a BMP imageEnhancement

Public API and Backward Incompatible Changes

BARCODENET-34421 Generate data matrix barcode with text on its right side

1) New Code location value CodeLocation.Right has been added to the enumeration: CodeLocation;

2) New methods getDisplay2DText and setDisplay2DText have been added to the BarCodeBuilder class;

Code sample

 BarCodeBuilder builder = new BarCodeBuilder(

"GTIN:898978777776665655

  UID: 121212121212121212

  Batch:GH768

  Exp.Date:150923", Symbology.DataMatrix);

builder.setCodeLocation(CodeLocation.Right);

builder.setMargins(new MarginsF(0,0,0,0));

//builder.setCodeTextSpace(0); // not recommended small space

builder.save("codetextRight.png");

In order to avoid including all the names into the codetext, the property called “Display2DText” should be used. See the sample below.

Code sample:

 String gtin = "898978777776665655";

String uid = "121212121212121212";

String batch = "GH768";

String expDate = "150923";

String textToEncode = gtin + uid + batch + expDate; // or  "(01)"+ gtin + "(..)"+ uid + ...

String textToDisplay = "GTIN:" + gtin + "\nUID:" + uid + "\nBatch:" + batch + "\nExp.Date:" + expDate;

BarCodeBuilder builder = new BarCodeBuilder(textToEncode, Symbology.DataMatrix);

builder.setDisplay2DText(textToDisplay);

builder.setCodeLocation(CodeLocation.Right);

builder.setMargins(new MarginsF(0,0,0,0));

//builder.setCodeTextSpace(0); // not recommended small space

builder.save("codetextRightDisplay.png");