Page 1 of 1

Error with PdfOCRCreateFromMultipageTIFF

Posted: Wed Mar 11, 2009 6:57 pm
by anvasi
HI,

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,

Re: Error with PdfOCRCreateFromMultipageTIFF

Posted: Thu Mar 12, 2009 7:27 am
by Loïc
Hi,

Please, send me your input multipage image and the resulting pdf at esupport (at) gdpicture (dot) com.

Best regards,

Loïc

Re: Error with PdfOCRCreateFromMultipageTIFF

Posted: Thu Mar 12, 2009 11:13 am
by anvasi
Hi loïc,

I send you and email with the images but I believe that the problem is in the letter Ñ because if I don't add the code works well

Best regards,

Re: Error with PdfOCRCreateFromMultipageTIFF

Posted: Thu Mar 12, 2009 4:35 pm
by Loïc
Ok thank you for your mail !

We found a bug into the library. Tomorrow we will publish a fixed release.

The problem came from the utf8 conversion of char Ñ.

Kind regards,

Loïc

Re: Error with PdfOCRCreateFromMultipageTIFF

Posted: Fri Mar 13, 2009 10:21 am
by Loïc
Hi,

This problem have been fixed in the current release.

Best regards,

Loïc