Free Support Forum - aspose.com

Barcode image of GS1 DataBar Expanded Stacked failed the GS1 Canda barcode verification

HI ,

There is another barcode image verification failure . the image can not pass GS1 Canada Barcode verfication process. Below is the code and verification report.

The barcode fail due to edge determ failure and decode fail.

String GTIN1 = “(01)00766907146318(13)991012(10)12345678901234567890”;
float xdim=0.20f;

	// Generate and save the image to file
	BarCodeBuilder builder = new BarCodeBuilder();
	// Set code text
	builder.setCodeText(GTIN1);
	// Set Symbology type
	builder.setEncodeType(EncodeTypes.DATABAR_EXPANDED_STACKED);

	builder.setAutoSize(true);
	
	builder.setGraphicsUnit(GraphicsUnit.Millimeter);
	
	builder.getCaptionBelow().setTextAlign(com.aspose.barcode.StringAlignment.NEAR);
	
	builder.setResolution(
			new Resolution(96f, 96f, ResolutionMode.Customized));
	
	builder.setCodeTextSpace(0.5f);
	builder.setRows(2);
	
	builder.setxDimension(xdim);
	builder.setBarHeight(14.2f);
	
	try {
		builder.save("c:\\temp\\" + "default" + ".png", BarCodeImageFormat.Png);
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}

databar.png (55.8 KB)

@justinwang191,

We are investigating the issue why this was not passed. Can you please also share the details how did you generate this report?

The report comes from GS1 SVR process. I think they print the barcode and scan them.

Hope it helpful.

@justinwang191,

This issue has been logged into our issue tracking system as BARCODEJAVA-555 and we will be able to share more details once the issue has been analyzed in detail or fixed. We will keep you updated on this issue in this thread. Sorry for the inconvenience.