Aspose.BarCode for .NET 7.9.0 Release Notes

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 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 property Display2DText has been added to the BarCodeBuilder class;

Code sample

 BarCodeBuilder builder = new BarCodeBuilder(

@"GTIN:898978777776665655

  UID: 121212121212121212

  Batch:GH768

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

builder.CodeLocation = CodeLocation.Right;

builder.Margins = new MarginsF(0,0,0,0);

//builder.CodeTextSpace = 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.Display2DText = textToDisplay;

builder.CodeLocation = CodeLocation.Right;

builder.Margins = new MarginsF(0,0,0,0);

//builder.CodeTextSpace = 0; // not recommended small space

builder.Save("codetextRightDisplay.png");