Diffrent Images wich Symbology.Interleaved2of5

Hello Aspose Team,

i have a Problem with following Code:

package projekt;

import com.aspose.barcode.BarCodeBuilder;
import com.aspose.barcode.License;
import com.aspose.barcode.Symbology;
import java.awt.*;

public class Hauptklasse
{
public static final void main(String args[]) throws Exception {



try {
com.aspose.barcode.License lic = new License();
lic.setLicense(“C:\Aspose.BarCode.lic”);
BarCodeBuilder bb = new BarCodeBuilder();
bb.setSymbology(Symbology.INTERLEAVED2OF5);
bb.setCodeText(“0265044394”);
bb.save(“c:\test.png”);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}


please recognize the setCodeText(“0265044394”).

If you can see in the generatet picture in the bottom of the picture ist the text schowing:

00265044393

This code is not suitable for me. In the Standard Documentation of this code is writen, that the count of the digits must be even.

Now the count is odd.

When i type the number at the website:

Free Online Barcode Generator: Create Barcodes for Free!

with Code: Interleaved 2 of 5,

i get the right picture.

What can I do?

Please help as soon as possible.

With best regards

Frank

Hi Frank,

I am sorry, I cannot reproduce the bug mentioned by you. The generated image has the same “0265044394” string at the bottom. I also compared with other values e.g. 123, 1234 etc. It gives the even number.

Could you please tell us which version of Aspose.BarCode for Java are you using? I tested it with v 1.8. The images generated with Aspose and the online generator link you mentioned are the same.

Hello,

thanks for your tip with the version. I changed the version of the Aspose Barcode.jar to v1.8.0.0and now it works.

Thanks for your help.

With best regards.

Frank