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();
}