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.21k stars 371 forks source link

Update ODT table Of content #134

Open hkashlan opened 8 years ago

hkashlan commented 8 years ago

Dear All I have ODT with Table of content

I have dynamic pages and dynamic Table of Content

How Can I update table of content.

sbhawsar commented 6 years ago

Do anyone have any idea, how to generate updated TOC in PDF from XDocReport ODT template

angelozerr commented 6 years ago

It's not possible with XDocReport since TOC is managed with OppenOffice.

sbhawsar commented 6 years ago

Thanks for your response.

Is there any custom code to handle this or any other external library. Actually I have added TOC in open office but it's page numbers are not getting updated based on PDF rendered.

angelozerr commented 6 years ago

I have not find a solution for that, any idea are welcome!

sbhawsar commented 6 years ago

@angelozerr,

How we can generate TOC from Xdocreport library without using ODT/DOCX template. Like either by overriding any existing class or using any flag.

angelozerr commented 6 years ago

The main problem is that TOC is managed by OpenOffice, XDocReport doesn't require OpenOffice and doesn't interact with OpenOffice, si I don't know how to resolve this problem. Any idea are welcome!

sbhawsar commented 6 years ago

Can you please let me where to connect for DOCX freemarker queries.

sbhawsar commented 6 years ago

@angelozerr,

Thanks for your response. Request you to please let me know how to handle html content for XDocReport and these contents are mixed of images, link and others.