We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cannot read a QR from a PDF file

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()

' bind the pdf document
Dim pdfExtractor As New Aspose.Pdf.Facades.PdfExtractor()
' set page range for image extraction
pdfExtractor.StartPage = 1
pdfExtractor.EndPage = 1
' extract the images
Console.WriteLine("Extracting images.....")
' 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()
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())
' close the reader

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

Thank you in advance for you support.


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.


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.