I am using MODI in order to implement ocr in one of my apps and every time I feed a tiff it only ocrs the first page of the tiff for some reason. That's my code: public string OCR(string path) {
try
{
var md = new MODI.Document();
md.Create(path);
md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
var image = (MODI.Image)md.Images[0];
return image.Layout.Text;
}
catch (Exception ee)
{
if (ee.Message.ToLower() == "ocr running error")
return ee.Message + ". No text found";
else
return " OCR not available. You need to have office installed.";
}
}
I guess I need a loop somewhere but how exactly?
Thanks in advance