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

ODT to PDF conversion loses images in header #546

Open dwori opened 2 years ago

dwori commented 2 years ago

Problem

I have the following issue: I have an .odt file that has a header. This header contains some Text and an image (logo) so it gets printed on every page of the report. Everything works fine when the report is processed to another .odt file, but when I convert it to a PDF file, images disappears or rather does not get rendered.

Question

This leads me to the question if there is another way how images must be inserted to the header, than it is with images in the body? Or is there any fix I can do?

Any help would be nice. :)

angelozerr commented 2 years ago

I suggest that you attach the odt that you wish to convert to pdf.

Me I have no time to work on it but it will have perhaps a xdocreport contributor who will have the same problem than you and will provide a fix