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
I am using GdPicture NET v10
Wath can i do?
Thanks