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...).
The values for <meta:document-statistic> in meta.xml are not updated after processing.
When the file is opened in OpenOffice, LibreOffice or Word, the app scan the file to get the values. Saving the file after the scan will save the values in meta.xml and will not rescan on opening.
For a large file, this is really slow and can lead to a crash of the app.
A workaround to avoid partially the scan is to set high values manually (in our tests, we set 100k) for : paragraph-count, word-count, character-count, non-whitespace-character-count. Then, the file opens really faster but the app still scans the page-count.
We tried with :
Windows/Linux
OpenOffice 4 (GUI or headless)
LibreOffice 6 (GUI or headless)
Word 365
XDocReport 2.0.1
Freemarker 2.3.28
ODT with multiple table but one with dynamic rows
A list of 5k items -> the document result contains 40 pages
The values for
<meta:document-statistic>
inmeta.xml
are not updated after processing.When the file is opened in OpenOffice, LibreOffice or Word, the app scan the file to get the values. Saving the file after the scan will save the values in
meta.xml
and will not rescan on opening.For a large file, this is really slow and can lead to a crash of the app.
A workaround to avoid partially the scan is to set high values manually (in our tests, we set 100k) for :
paragraph-count
,word-count
,character-count
,non-whitespace-character-count
. Then, the file opens really faster but the app still scans thepage-count
.We tried with :