Browse our Products

Aspose.BarCode for .NET 23.7 Release Notes

All Changes

KeySummaryCategory
BARCODENET-38666Fix decreased performance of DataMatrix recognitionBug
BARCODENET-38536Code throws System.IndexOutOfRangeException with empty stringBug
BARCODENET-37518Improve Micro PDF417 readerEnhancement
BARCODENET-37840Replace color binarization algorithmEnhancement
BARCODENET-38584Improve Han Xin Code supportEnhancement
BARCODENET-38591Improve DataMatrix Industrial recognition engineEnhancement

Public API changes and backwards compatibility

Added:

  • field Aspose.BarCode.BarCodeRecognition.QualitySettings.AllowAdditionalRestorations
  • field Aspose.BarCode.BarCodeRecognition.Pdf417ExtendedParameters.IsReaderInitialization
  • class Aspose.BarCode.Generation.HanXinExtCodetextBuilder
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.#ctor
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddECI(System.String,System.Int32)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddAuto(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddBinary(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddURI(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddText(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddNumeric(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddUnicode(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddCommonChineseRegionOne(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddCommonChineseRegionTwo(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddGB18030TwoByte(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddGB18030FourByte(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.AddGS1(System.String)
  • method Aspose.BarCode.Generation.HanXinExtCodetextBuilder.GetExtendedCodetext
// Extended Mode with HanXinExtCodetextBuilder
var codeTextBuilder = new HanXinExtCodetextBuilder();
codeTextBuilder.AddGB18030TwoByte("漄");
codeTextBuilder.AddGB18030FourByte("㐁");
codeTextBuilder.AddCommonChineseRegionOne("全");
codeTextBuilder.AddCommonChineseRegionTwo("螅");
codeTextBuilder.AddNumeric("123");
codeTextBuilder.AddText("qwe");
codeTextBuilder.AddUnicode("ıntəˈnæʃənəl");
codeTextBuilder.AddECI("ΑΒΓΔΕ", 9);
codeTextBuilder.AddAuto("abc");
codeTextBuilder.AddBinary("abc");
codeTextBuilder.AddURI(@"backslashes_should_be_doubled\000555:test");
codeTextBuilder.AddGS1(@"(01)03453120000011(17)191125(10)ABCD1234(21)10");
var str = codeTextBuilder.GetExtendedCodetext();

var expectedStr = @"漄㐁全螅123qweıntəˈnæʃənəlΑΒΓΔΕabcabcbackslashes_should_be_doubled\000555:test(01)03453120000011(17)191125(10)ABCD1234(21)10";

using (var bg = new BarcodeGenerator(EncodeTypes.HanXin, str))
{
	bg.Parameters.Resolution = 66f;
	bg.Parameters.Barcode.HanXin.HanXinEncodeMode = HanXinEncodeMode.Extended;
	var img = bg.GenerateBarCodeImage();

	using (var r = new BarCodeReader(img, DecodeType.HanXin))
	{
		var found = r.ReadBarCodes();
		Assert.AreEqual(1, found.Length);
		Assert.AreEqual(expectedStr, found[0].CodeText);
	}
}