Hi, I am attempting to generate datamatrix barcodes from within itext. This works fine for most of my codes but not for some codes. One example is:
HEnSh0701003-2V1
This produces a non square barcode for some reason. When I use encoders from other companies (such as IDAutomation) I do get a valid square barcode.
Does anyone have an idea why this is happening? I am looking for a solution so I can use the embedded iTest DataMatrix class and not have to use a third party one.
A sample of the code I am using:
BarcodeDatamatrix bar = new BarcodeDatamatrix();
bar.setOptions(BarcodeDatamatrix.DM_AUTO);
bar.generate("HEnSh0701003-2V1");
bcd.addCell(bar.createImage());
where bcd is a PdfTable with 2 columns.