We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Issue with Data Matrix barcode

Is there an issue encoding longer strings when using a DataMatrix barcode? When I create a DataMatrix barcode with “This is the data to be encoded”, I get a readable barcode image. When I create a DataMatrix with “This is the data to be encodedThis is the data to be encoded”, the barcode image is not readable by a Focus MS1690 scanner. Also the barcode appears to have 4 quadrants instead of 1. Below is the code to generate the longer text barcode:

public class DataMatrixBarcode {
public static void main(String[] args) throws Exception {
BarCodeBuilder builder = new BarCodeBuilder();
builder.setSymbology(BarCodeBuilder.SYMBOLOGY_DATAMATRIX);
builder.setCodeText(“This is the data to be encodedThis is the data to be encoded”);
builder.setAutoSize(true);
String fileName = “image” + System.currentTimeMillis() + “.png”;
builder.save(fileName);
System.out.println("File: " + fileName);
System.out.println("Height: " + builder.getHeight());
System.out.println("Width: " + builder.getWidth());
}

}


Thanks.

Hi,


Thanks for your inquiry.

I have registered a bug for this in our system (ID: 20427). We will look into it and will get back to you soon. Sorry for the inconvenience.

The issues you have found earlier (filed as 20427 ) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.