### Question:
Tesseract implements ITesseract { @Override public void createDocuments(String filename, String outputbase, List<RenderedFormat> formats) throws TesseractException { createDocuments(new String[]{filename}, new String[]{outputbase}, formats); }  @Deprecated static synchronized Tesseract getInstance(); @Override void setDatapath(String datapath); @Override void setLanguage(String language); @Override void setOcrEngineMode(int ocrEngineMode); @Override void setPageSegMode(int mode); void setHocr(boolean hocr); @Override void setTessVariable(String key, String value); @Override void setConfigs(List<String> configs); @Override String doOCR(File imageFile); @Override String doOCR(File imageFile, Rectangle rect); @Override String doOCR(BufferedImage bi); @Override String doOCR(BufferedImage bi, Rectangle rect); @Override String doOCR(List<IIOImage> imageList, Rectangle rect); @Override String doOCR(List<IIOImage> imageList, String filename, Rectangle rect); @Override String doOCR(int xsize, int ysize, ByteBuffer buf, Rectangle rect, int bpp); @Override String doOCR(int xsize, int ysize, ByteBuffer buf, String filename, Rectangle rect, int bpp); @Override void createDocuments(String filename, String outputbase, List<RenderedFormat> formats); @Override void createDocuments(String[] filenames, String[] outputbases, List<RenderedFormat> formats); @Override List<Rectangle> getSegmentedRegions(BufferedImage bi, int pageIteratorLevel); @Override List<Word> getWords(BufferedImage bi, int pageIteratorLevel);  }### Answer:
@Test public void testCreateDocuments() throws Exception { logger.info("createDocuments for multiple images"); File imageFile1 = new File(this.testResourcesDataPath, "eurotext.pdf"); File imageFile2 = new File(this.testResourcesDataPath, "eurotext.png"); String outputbase1 = "target/test-classes/test-results/docrenderer-1"; String outputbase2 = "target/test-classes/test-results/docrenderer-2"; List<RenderedFormat> formats = new ArrayList<RenderedFormat>(Arrays.asList(RenderedFormat.HOCR, RenderedFormat.PDF, RenderedFormat.TEXT)); instance.createDocuments(new String[]{imageFile1.getPath(), imageFile2.getPath()}, new String[]{outputbase1, outputbase2}, formats); assertTrue(new File(outputbase1 + ".pdf").exists()); }