Hello there,
Can you please guide me to set the 2D datamatrix size to 12x12 millimeter.i tried playing with the setsize() methods but did not get the desired size. I will appreciate your help.
Regards
Zulf
Hello there,
Hi Ikram,
**CODE-1** :
BarCodeBuilder objBuilder = new BarCodeBuilder();
objBuilder.setSymbologyType(com.aspose.barcode.Symbology.DataMatrix);
objBuilder.setCodeText("(01)09501101020917(17)190508(10)ABCD1234(410)9501101020917");
objBuilder.setAutoSize(true);
objBuilder.setImageHeight(12);
objBuilder.setImageWidth(12);
objBuilder.save("1.jpg");
**CODE-2:**
BarCodeBuilder objBuilder = new BarCodeBuilder();
objBuilder.setSymbologyType(com.aspose.barcode.Symbology.DataMatrix);
objBuilder.setCodeText("123456789");
objBuilder.setAutoSize(false);
objBuilder.setImageHeight(12);
objBuilder.setImageWidth(12);
objBuilder.save("2.jpg");