@Test public void shouldConvertDocToXHTML() throws IOException { InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream("docxexample.docx"); byte[] bytes = IOUtils.toByteArray(resourceAsStream); String text = service.convertToXHTML(bytes); System.out.println(text); assertTrue(text.contains("<body>")); assertTrue(text.contains("<tr>")); }
public String convertToXHTML(byte[] data) { return convertWithHandler(data, new ToXMLContentHandler()); }
DocumentConversionService { public String convertToXHTML(byte[] data) { return convertWithHandler(data, new ToXMLContentHandler()); } }
DocumentConversionService { public String convertToXHTML(byte[] data) { return convertWithHandler(data, new ToXMLContentHandler()); }  }
DocumentConversionService { public String convertToXHTML(byte[] data) { return convertWithHandler(data, new ToXMLContentHandler()); }  String convertToText(byte[] data); String convertToXHTML(byte[] data); String tryOCRByConvertingToTiff(DNCWorkCoordinate coordinate, byte[] bytes); }
DocumentConversionService { public String convertToXHTML(byte[] data) { return convertWithHandler(data, new ToXMLContentHandler()); }  String convertToText(byte[] data); String convertToXHTML(byte[] data); String tryOCRByConvertingToTiff(DNCWorkCoordinate coordinate, byte[] bytes); public Boolean imageMagickInstalled; }