Hi.
We have some problems with barcode-recognition (datamatrix) from pdf.
Barcode ist recognized, but we get the wrong decoded text-string.
See the attached testfile.
Barcode is recognised as "1-KOE-SH-001"
correct decode should be "1-KOE-SCH-001"
We are using the latest dlls (aspose.barcode 5.6.2.0 and aspose.pdf 8.3.0.0).
Here is our code:
Aspose.Pdf.Facades.PdfExtractor extractor = new Aspose.Pdf.Facades.PdfExtractor();
extractor.BindPdf(source);
extractor.StartPage = 1;
extractor.EndPage = 1;
extractor.ExtractImage();
if (!extractor.HasNextImage()) return 0;
extractor.GetNextImage(ms);
ms.Position = 0;
reader = new BarCodeReader(ms, BarCodeReadType.DataMatrix);
reader.ImageBinarizationHints = RecognitionHints.ImageBinarization.MedianSmoothing;
while (reader.Read())
{
BarCode.Add(reader.GetCodeText());
}
Christian.