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.19k stars 368 forks source link

missing elements when converting ODT text file to PDF #672

Open MaximStein opened 1 month ago

MaximStein commented 1 month ago

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

image

angelozerr commented 1 month ago

Implementing a pdf converter is a very hard issue

I suggest that you attach your ont.

Any contribution are welcome!