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;
}
...
}