I need to read a barcode in pdf file. I use the project sample Barcode Recognition - 1D and I read the coordinate of barcode.
In a second project use the coordinate to read a bar.code but I cannot read it.
I use this code :
Code: Select all
dim SinglePDF as string = "c:\myPDFile"
If oGdPictureImaging.GetDocumentFormatFromFile(SinglePDF) = DocumentFormat.DocumentFormatPDF Then
Dim oPDF As GdPicturePDF = New GdPicturePDF
If oPDF.LoadFromFile(SinglePDF, False) = GdPictureStatus.OK Then
m_ImageID = oPDF.RenderPageToGdPictureImage(200, True)
oPDF.CloseDocument()
End If
Else
m_ImageID = oGdPictureImaging.CreateGdPictureImageFromFile(SinglePDF)
End If
oGdPictureImaging.ResetROI()
Call oGdPictureImaging.SetROI(LeftAreaROI, TopAreaROI, WidthAreaROI, HeightAreaROI)
oGdPictureImaging.Barcode1DReaderDoScan(m_ImageID)
If oGdPictureImaging.GetStat = GdPictureStatus.OK Then
bcfound = oGdPictureImaging.Barcode1DReaderGetBarcodeCount
Can you help me ?
I use the 8.5 net version.
Bye