we have converted our code from net 2.0 to net 4.0 and are using now the new 4.0 dll's:
Aspose.BarCode / Aspose.BarCodeRecognition 184.108.40.206
Everything works fine, but now, only with a few files, we had some problems with barcode-recognition. The reader couldn't find the barcode (datamatrix).
I have allready tried RecognitionHints.ImageBinarization.Grayscale or MedianSmoothing. No success....
Here is my code:
Aspose.Pdf.Facades.PdfExtractor extractor = new Aspose.Pdf.Facades.PdfExtractor();
extractor.StartPage = 1;
extractor.EndPage = 1;
if (!extractor.HasNextImage()) return 0;
ms.Position = 0;
reader = new BarCodeReader(new System.Drawing.Bitmap(ms), BarCodeReadType.DataMatrix);
reader.ImageBinarizationHints = RecognitionHints.ImageBinarization.Grayscale;