I generated the databar expended stacked using the latest java lib. the barcode can not be read in phical scanner. i also try to read it in the online https://online-barcode-reader.inliteresearch.com/, it fails to read either
Would you please suggest?
@Test
public void testDATABAR_EXPANDED_STACKED_ROW_2(){
//String GTIN1 = "(01)12345678901231(13)181022(10)123456rbcde";
String GTIN1 = "(01)01082503101704";
int row = 2;
float xdim=0.33f;
float height=23.44f;
// Generate and save the image to file
BarcodeGenerator builder = new BarcodeGenerator(EncodeTypes.DATABAR_EXPANDED_STACKED);
// Set code text
builder.setCodeText(GTIN1);
builder.getParameters().getBarcode().getDataBar().setRows(row);
//builder.getParameters().setAutoSizeMode(AutoSizeMode.NONE);
//builder.getParameters().getBarcode().getCodeTextParameters().getFont().getSize().setMillimeters(80);
builder.getParameters().getBarcode().getXDimension().setMillimeters(xdim);
builder.getParameters().getBarcode().getBarHeight().setMillimeters(height);
builder.getParameters().getBarcode().getPadding().getLeft().setMillimeters(0);
builder.getParameters().getBarcode().getPadding().getRight().setMillimeters(0);
builder.getParameters().getBarcode().getPadding().getTop().setMillimeters(0);
builder.getParameters().getBarcode().getPadding().getBottom().setMillimeters(0);
builder.getParameters().setResolution(600f);
// int x = builder.getParameters().getBarcode().getQuietZonesWidthInXDim();
// int y = builder.getParameters().getBarcode().getCalculatedBarCodeWidth();
// int z = builder.getParameters().getBarcode().getSupplementSpace();
// float xx = builder.getParameters().getImageWidth().getMillimeters();
As I understand the scanner doesn’t recognize Databar Barcodes if last row has only one data pattern with one target pattern and it requires at least 2 data patterns in last row.
Thank you. The image have been sent to our barcode verification office.
Just want to confirm you are using the c# coding. I do not have the IsAllowOnlyGS1Encoding = true in java lib, My gussing is your imange should be passed in the verification.
my really problem is to generate the (01)01082503101704 in databar expanded stacked in 2 rows - that image can not be scan. if the barcode has more AI it pass most time.
I think that “7.2.8 RSS Expanded Stacked” is not fully correctly implemented in our engine, but I am not sure, because we don’t have this hardware scanner and all software scanners recognize images well.
The number of symbol characters in all but the last row shall be even. There shall be a minimum of four symbol characters in the first row of an RSS Expanded Stacked symbol when it is the linear component of an EAN.UCC Composite symbol. The rows shall be ordered in a top to bottom sequence. The last row shall contain a minimum of two symbol characters with extra padding, if needed. If the symbol is part of an EAN.UCC Composite symbol, the 2D component shall be printed above the top row.
Currently we don’t do this extra padding and this might be problem.
Appreciate you provide the details information. if this is the root cause is it possiable to release an urgent fix. we can run a quick scan on our end.
Thank you so much. I will follow up with our verification team. I will be able to provide the test result on Monday (EST) as the visit to office is restricted now.