Cannot read a QR from a PDF file

Hi,
I cannot find a QR barcode from the attached pdf file, using the aspose.barcoderecognition dll.
I'm using all the latest versions of the dlls:

Aspose.Barcode 4.8
Aspose.BarcodeRecognition 4.8
Aspose.Pdf 7.1
Aspose.PdfKit 6.0

My code is:

Sub Main()
Try
activateAspose()

' bind the pdf document
Dim pdfExtractor As New Aspose.Pdf.Facades.PdfExtractor()
pdfExtractor.BindPdf("C:\Users\fgeri\Desktop\test-document.pdf")
' set page range for image extraction
pdfExtractor.StartPage = 1
pdfExtractor.EndPage = 1
' extract the images
Console.WriteLine("Extracting images.....")
pdfExtractor.ExtractImage()
' save images to stream in a loop
Do While pdfExtractor.HasNextImage()
Console.WriteLine("Getting next image....")
' save image to stream
Dim imageStream As New MemoryStream()
pdfExtractor.GetNextImage(imageStream)
imageStream.Position = 0

Console.WriteLine("Recognizing barcode....")
' recognize the barcode from the image stream above
Dim barcodeReader As New Aspose.BarCodeRecognition.BarCodeReader(imageStream, BarCodeReadType.QR)
Do While barcodeReader.Read()
Console.WriteLine("Codetext found: " & barcodeReader.GetCodeText() & ", Symbology: " & barcodeReader.GetReadType().ToString())
Loop
' close the reader
barcodeReader.Close()
Loop

Console.WriteLine("Press any key to terminate")
Console.ReadKey()
Catch ex As Exception
Console.WriteLine(ex.ToString())
End Try
End Sub

Thank you in advance for you support.

Hi,


Thank you for contacting support.

We are currently testing the beta version of Aspose.BarCode for .NET v4.9.0 and I am afraid this version can not recognize the barcode symbol from your provided sample. For investigation purposes, I have logged a ticket (BARCODENET-33285) in our defect database and attached it to your request for efficient tracking. We will soon analyse the problem cause and will keep you updated with the status of the ticket.

Regards,

The issues you have found earlier (filed as BARCODENET-33285) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.