opensagres / xdocreport

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...).
https://github.com/opensagres/xdocreport
1.22k stars 372 forks source link

Convert Word (.docx !) to html with Apache POI + fr.opensagres.xdocreport :: Embedded excel charts are ignored #280

Open salexe opened 6 years ago

salexe commented 6 years ago

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();

angelozerr commented 6 years ago

XDocReport converter doesn't support chart, any contribution are welcome!

yelnyleenew commented 4 months ago

get it.