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 trying to convert some docx to pdf, it throws NoClassDefFoundError: org/apache/poi/wp/usermodel/Paragraph.
This happens, when Apache POI 3.12 is on the ClassPath. When using POI 3.11 it works as expected.
This is the code we use:
OutputStream out = ...;
XWPFDocument doc = new XWPFDocument(docxFile.getInputStream());
PdfOptions options = PdfOptions.create().fontEncoding("windows-1250");
PdfConverter.getInstance().convert(doc, out, options);
When trying to convert some docx to pdf, it throws
NoClassDefFoundError: org/apache/poi/wp/usermodel/Paragraph
. This happens, when Apache POI 3.12 is on the ClassPath. When using POI 3.11 it works as expected.This is the code we use:
pom.xml: