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...).
I loaded a .odt Text file which contains a table and several text frames. When saving it as .odt, everything looks fine, but when saving it as PDF, all elements except the table are missing.
File outFile = new File("C:\\Users\\maxim\\Downloads\\test.pdf"); OutputStream out = new FileOutputStream( outFile ); PdfConverter.getInstance().convert(odt, out, PdfOptions.create()); out.close();
I loaded a .odt Text file which contains a table and several text frames. When saving it as .odt, everything looks fine, but when saving it as PDF, all elements except the table are missing.
File outFile = new File("C:\\Users\\maxim\\Downloads\\test.pdf"); OutputStream out = new FileOutputStream( outFile ); PdfConverter.getInstance().convert(odt, out, PdfOptions.create()); out.close();