ITF14 Corrugate barcode Image can not pass the GS1 Verification

Hi All,

we had a problem for the ITF14 corrugate barcode. The image can not pass the GS1 Barcode verification process due to the quiet zone failure.

Below is the code

@Test
public void testITF14() {

	try {
		validateLicensePath();
	} catch (Exception e1) {
		// TODO Auto-generated catch block
		e1.printStackTrace();
	}
	
	String GTIN = "98845678901231";
	
	BarCodeBuilder builder =  new BarCodeBuilder();
	
	builder.setAutoSize(true);
	builder.setGraphicsUnit(GraphicsUnit.Millimeter);
	builder.setResolution(new Resolution(300f, 300f,ResolutionMode.Printer));
	
	builder.setEncodeType(EncodeTypes.ITF_14);
	builder.setITF14BorderType(ITF14BorderType.FrameOut);
	//builder.setBorderVisible(true);
	//builder.setBorderWidth(4.83f);
	builder.setCodeTextSpace(1.02f);
	builder.setITF14BorderThickness(4.83f);

	builder.getMargins().setLeft(4.95f);
	builder.getMargins().setRight(4.95f);
	builder.getMargins().setTop(0f);
	builder.getMargins().setBottom(0f);
	
	builder.setxDimension(0.495f);
	builder.setBarHeight(31.75f);
	//Font c = builder.getCodeTextFont();
	//builder.setImageWidth(152.35f);
	
	
	//builder.setCodeTextSpace(0.0f);
	//builder.setSupplementSpace(0.0f);
	//builder.setCodeLocation(CodeLocation.None);

// builder.getMargins().setLeft(4.95f);
// builder.getMargins().setRight(4.95f);

	try {
		builder.setCodeText(GTIN);

// builder.setCodeLocation(CodeLocation.None);
// Caption c = new Caption(GTIN);
// builder.setCaptionBelow©;
builder.save(“c:\temp\” + GTIN +".svg", BarCodeImageFormat.Svg);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Untitled.png (38.9 KB)

Attched the test result.

Thank you in advance for any help.

Would you please confirm if it would be more accurate if i set the x-dim with pixel ?

@justinwang191,

We are investigating it in details and will update you soon.

Thanks, that is a showstopper for our release.

Thank you in advance for any help.

@justinwang191,

We have logged a ticket in our issue tracking system as BARCODEJAVA-567 against the issue reported by you. We will update you here as soon as we have additional information.

@justinwang191,

We have attached two sample images which have been fixed according to the recommendations. Please have these images verified and share the test results with us.

Barcodes.zip (15.6 KB)

I can not download the file.

Thanks,

@justinwang191,

I have uploaded the file to Dropbox. You may download it using the link given below.
Barcodes.zip

The issues you have found earlier (filed as BARCODEJAVA-567) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan

@justinwang191,

We hope that the latest version of Aspose.BarCode for Java fixed the issue that you were facing. We are looking forward to your feedback. Please feel free to reach us if additional information is required.

Thank you for the update. I am using another API for the ITF barcode now.

Regards,