we have problems when we want reconize with this code.
If we add characters in CharWhiteList, don't generate a valid image pdf with ocr but if CharWhiteList = "" it work fine.
Code: Select all
oGdPictureImaging.TiffOpenMultiPageAsReadOnly(True)
ImageID = oGdPictureImaging.TiffCreateMultiPageFromFile(DirListBox1.Path & "\" & FileListBox1.Items(ficheros).ToString)
oGdPictureImaging.PdfOCRCreateFromMultipageTIFF(ImageID, GdPicture.TesseractDictionary.TesseractDictionarySpanish, "C:\Archivos de programa\GdPicture.NET\Redist\OCR", "ABCDEFGHIJKLMNÑOPQRSTUWXYZ", ruta & "\" & Mid(FileListBox1.Items(ficheros).ToString, 1, Len(Trim(FileListBox1.Items(ficheros).ToString)) - 4) & ".pdf", True, "", "catimatge", "catimatge", "", "catimatge")
oGdPictureImaging.ReleaseGdPictureImage(ImageID)
oGdPictureImaging.OCRTesseractClear()
Thanks a lot,