Can we wrap up the code text per AI in the human readable area for the DataBar Expanded Stack

for example as the below link. i fount out sometimes the code text has been cut off

Thanks,

@justinwang191,

Can you please share an example of such a a cut off with us ? This will help us analyse your requirements. If any third party BarCode generator provider has the ability to do so, please share with us so that we can take that as reference for further consideration at our end.

String GTIN1 = “(01)00766907146318(15)180824(13)180824(17)180824(21)12345678(10)12345678901234567890”;

	int row = 3;
	float xdim=0.33f;
	
	// Generate and save the image to file
	BarCodeBuilder builder = new BarCodeBuilder();
	// Set code text
	builder.setBinaryCodeText(GTIN1.getBytes());
	// Set Symbology type
	builder.setEncodeType(EncodeTypes.DATABAR_EXPANDED_STACKED);

	builder.setGraphicsUnit(GraphicsUnit.Millimeter);
	builder.setAutoSize(true);
	builder.setResolution(
			new Resolution(600f, 600f, ResolutionMode.Customized));
	builder.setRows(row);
	
	builder.setxDimension(xdim);
	builder.setBarHeight(23.44f);
	builder.setCodeTextAlignment(StringAlignment.NEAR);

	try {
		builder.save("c:\\temp\\" + row + "_" + xdim *1000 + ".png", BarCodeImageFormat.Png);
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}<a class="attachment" href="/uploads/default/18017">3_330.0.png</a> (19.2 KB)

The above is the sample code . I can see the 1 of the (21)123… is cut off.

Thank you in advance for your help.3_330.0.png (19.2 KB)

@justinwang191,

An API to set display text i.e. builder.setDisplay2DText(displayText) is supported by Aspose.BarCode, however, it is not working in your case. We are investigating this issue further and will try to fix it in the upcoming release. We will keep you updated on this issue in this thread.

The issues you have found earlier (filed as BARCODENET-36952) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by muhammadahmad