Thanks for providing further details.
After an initial test, I am managed to reproduce the issue but differently using the newer version (e.g Aspose.BarCode for Java v19.5). I found it does not read the barcode text in your provided .gif file:
String bmp = “f:\files\Pharmacode1voie.gif”;
String bmp = "f:\files\GS1-databar-expanded.gif";
com.aspose.barcode.barcoderecognition.BarCodeReader reader = new com.aspose.barcode.barcoderecognition.BarCodeReader(bmp, com.aspose.barcode.barcoderecognition.DecodeType.ALL_SUPPORTED_TYPES);
I have logged a ticket with an id “BARCODEJAVA-722” for your issue. We will look into it soon.
Once we have an update on it, we will let you know.