Problem with Barcode Generator

Recently we use this Word file guntherbarcode.docx (52,5 KB)
for Aspose Words Java barcode test, Problem is, during CustomBarcode parse, the type is always
“CODE128·” instead of “CODE128”, there is an extra middle point. As workaround, I change the code from “equals” to “contains”.

It should be a bug of Aspose.

 public BufferedImage getBarcodeImage(final BarcodeParameters parameters)
    {
        if (parameters.getBarcodeType() == null || parameters.getBarcodeValue() == null)
        {
            return null;
        }

        final String type = parameters.getBarcodeType().toUpperCase().trim();
        BaseEncodeType encodeType = EncodeTypes.NONE;

        if (type.equals("QR"))
        {
            encodeType = EncodeTypes.QR;
        }
        if (type.contains("CODE128")) //equals
        {
            encodeType = EncodeTypes.CODE_128;
        }
...
}

@zwei
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25982

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

The issues you have found earlier (filed as WORDSNET-25982) have been fixed in this Aspose.Words for Java 23.10 update.

1 Like