Can not read some QR codes in PDF's

Discussions about qrcode barcode reading and writing
Post Reply
Magc
Posts: 3
Joined: Thu Aug 15, 2013 4:55 pm

Can not read some QR codes in PDF's

Post by Magc » Tue Jun 02, 2015 7:33 pm

Hello

I am using the example code

Code: Select all

'Step1: Open the PDF
Dim oGdPicturePDF As New GdPicturePDF
If oGdPicturePDF.LoadFromFile("PDFfile.pdf", False) = GdPictureStatus.OK Then
   'Step2: Convert the desired PDF page to GdPicture Image
   oGdPicturePDF.SelectPage(1)
   Dim imageID As Integer = oGdPicturePDF.RenderPageToGdPictureImage(200, False)
   If imageID <> 0 Then
      'Step3: Barcode recognition from GdPicture Image
      Dim oGdPictureImaging As New GdPictureImaging
      oGdPictureImaging.BarcodeQRReaderDoScan(imageID, BarcodeQRReaderScanMode.BestQuality)
      oGdPictureImaging.ReleaseGdPictureImage(imageID)
      For i As Integer = 1 To oGdPictureImaging.BarcodeQRReaderGetBarcodeCount()
         MessageBox.Show("Barcode no: " + i.ToString() + Chr(13) + _
            "Barcode version: " + oGdPictureImaging.BarcodeQRReaderGetVersion(i).ToString + Chr(13) + _
            "Barcode value: " + oGdPictureImaging.BarcodeQRReaderGetBarcodeValue(i))
      Next
      oGdPictureImaging.BarcodeQRReaderClear()
   End If
   oGdPicturePDF.CloseDocument()
End If
But some cases I can not read QR Code. The property 'BarcodeQRReaderGetBarcodeCount()' is zero.

I am using GdPicture NET v10

Wath can i do?

Thanks

User avatar
Loïc
Site Admin
Posts: 5537
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Can not read some QR codes in PDF's

Post by Loïc » Tue Jun 02, 2015 9:24 pm

Hello,
Wath can i do?
You can open a ticket here by providing the document used for the detection process: https://support.orpalis.com/

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest