title: C# OCR tiff with MODI only ocr's the first page
body: <p>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)
          {</p>
  
  <pre><code>        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.";
          }
  
      }
  </code></pre>
  
  <p>I guess I need a loop somewhere but how exactly?</p>
  
  <p>Thanks in advance</p>