XDocReport means XML Document reporting. It's Java API to merge XML document created with MS Office (docx) or OpenOffice (odt), LibreOffice (odt) with a Java model to generate report and convert it if you need to another format (PDF, XHTML...).
When converting a WORD document ( .docx ! ) to html using XHTMLConverter , document contains an excel chart, the chart is ignored completely in the output html.
Code sample:
XWPFDocument document = new XWPFDocument(inputStream);
OutputStream outputStream = new ByteArrayOutputStream();
XHTMLOptions options = XHTMLOptions.create().indent(4).setImageManager(new Base64EmbedImgManager());
XHTMLConverter.getInstance().convert(document, outputStream, options);
return outputStream.toString();
When converting a WORD document ( .docx ! ) to html using
XHTMLConverter
, document contains an excel chart, the chart is ignored completely in the output html.Code sample:
XWPFDocument document = new XWPFDocument(inputStream); OutputStream outputStream = new ByteArrayOutputStream(); XHTMLOptions options = XHTMLOptions.create().indent(4).setImageManager(new Base64EmbedImgManager()); XHTMLConverter.getInstance().convert(document, outputStream, options); return outputStream.toString();