sorry JODReports isn't working as expected for you.
I'd like to reproduce the problem and look into it. Can you provide me
with a test case which demonstrates the erroneous behaviour, like a
stripped-down Java unit test generating the 95 pages document?
Best regards
Ansgar
l8r.
Ansgar
I tried to reproduce this behaviour using your receipe.
I created a document template with as much as 264 pages, all containing
"abc abc ...". I created a number of quite lengthy paragraphs (12 lines
each) and copy/pasted them until I got 264 pages.
I put [#if false] at the very beginning of page 1 and [/#if] somewhere
at the beginning of page 15.
After generating the document instance, I get a document with 251 (!)
pages. The whole process of opening the document takes around 3 seconds.
No main window is updated during this time, I can see a grey rectangle
during this time. There is no increasing number of pages. After the
first full drawing of the main window, I can see the "251 pages" figure
in the status bar at the bottom. I use OpenOffice 3.1.1 on Linux
(Core2Duo T9300 2,5 GHz, 4 GB RAM).
If I press CTRL+END, the cursor jumps to the end of the document and the
number of pages is corrected to 250 (!).
So I suspect the whole issue might have to do with re-pagination after
the generated document is opened. This might take a few seconds on
slower hardware.
I also converted the 250 pages ODT file into PDF using JODConvert. This
really took a while to finish, like 30 seconds or so with nearly 100%
CPU. But the result is all good: exactly 250 pages.
Can you give some more details on:
- the hardware (CPU, RAM) you are using to open the 95 pages document
and to convert this to pdf.
- the version of OpenOffice / LibreOffice you are using?
Thanks in advance
Ansgar