I’m using the BarCodeReader to identify barcodes in scanned documents. My requirement is that I need to be able to pass a number of single page tif documents and check each document individually to determine if a barcode is present. I also know that the barcode is always going to be of a particular type.
My problem is that once the BarCodeReader instance detects its first barcode, any subsequent instance of the BarCodeReader class fails to detect a barcode on a valid image.
I have created a separate test application to validate my problem and I can reproduce it 100% of the time. The source code for my test app is below and I’ve attached the tif images I’m using to test against.
Can someone please look at this urgently as this is an extremely pressing issue for us right now.
Test Code ---------------------------
static void Main(string args)
Aspose.BarCode.License l = new Aspose.BarCode.License();
l.SetLicense(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"" + “Aspose.Total.lic”);
Aspose.BarCodeRecognition.License li = new Aspose.BarCodeRecognition.License();
li.SetLicense(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"" + “Aspose.Total.lic”);
BarCodeReadType type = BarCodeReadType.Code128;
List filenames = new List();
foreach (string filename in filenames)
BarCodeReader reader = new BarCodeReader(filename, type);
while (reader.Read() == true)
catch (Exception exception)