I suspect a bug in somewhere in the OCR Tesseract plugin introduced since GdPicture version 5.12.0/5.12.1 (?)
OCRTesseractGetCharCount returns for some documents a larger number than length of a string (without spaces/new lines) returned from OCRTesseractDoOCR function. If I do the following loop:
Code: Select all
for i:=1 to oGdPicture.OCRTesseractGetCharCount do
teststring := teststring + Char(oGdPicture.OCRTesseractGetCharCode(i));
They do not exist in the string returned from OCRTesseractDoOCR function.
Please respond as soon as possible.
Kind regards,
Slava