docs: @Override
      public String doOCR(List<IIOImage> imageList, String filename, Rectangle rect) throws TesseractException {
          init();
          setTessVariables();
  
          try {
              StringBuilder sb = new StringBuilder();
              int pageNum = 0;
  
              for (IIOImage oimage : imageList) {
                  pageNum++;
                  try {
                      setImage(oimage.getRenderedImage(), rect);
                      sb.append(getOCRText(filename, pageNum));
                  } catch (IOException ioe) {
                      // skip the problematic image
                      logger.error(ioe.getMessage(), ioe);
                  }
              }
  
              if (renderedFormat == RenderedFormat.HOCR) {
                  sb.insert(0, htmlBeginTag).append(htmlEndTag);
              }
  
              return sb.toString();
          } finally {
              dispose();
          }
      }