Hi Loic,
first of all, thanks for your quicky reply.
In pdf extraction I do:
- Code: Select all
Me.Viewer.SilentMode = True
ImageID = Me.Viewer.PdfRenderPageToGdPictureImage(200, Me.Viewer.CurrentPage)
oGDTemp = oGdPictureImaging
If Me.Viewer.IsRect Then
Call Me.Viewer.GetRectCoordinatesOnDocumentInches(LeftArea, TopArea, WidthArea, HeightArea)
Call oGDTemp.SetROI(CInt(LeftArea * 200), CInt(TopArea * 200), CInt(WidthArea * 200), CInt(HeightArea * 200))
Else
oGDTemp.ResetROI()
LeftArea = 0
TopArea = 0
WidthArea = 0
HeightArea = 0
End If
sOCR = oGDTemp.OCRTesseractDoOCR(ImageID, TesseractDictionary.TesseractDictionaryItalian, dictonaryFolder, "")
Me.Viewer.SilentMode = False
The only thing that I understand is that, when I extract from tiff, I must substitute
- Code: Select all
Call Me.Viewer.GetRectCoordinatesOnDocumentInches(LeftArea, TopArea, WidthArea, HeightArea)
with
- Code: Select all
Call Me.Viewer.GetRectCoordinatesOnDocument(LeftArea, TopArea, WidthArea, HeightArea)
Unfortunatly, when I do the image rendering, imageID is zero.
How I can resolve my problem?
Thanks in advance.
G. S.