Forum How do I...?

Long tables overflow on top next element on the next page

tomilaurell
Hi,

I've been trying to find solution to the problem that should be quite common case.

I have attached html and pdf of the results. I have used docraptor to generate pdf, but should not have anything that would change how this simple page would look.

So the problem is that tables that fit the the same page works well. They reserve the space they need and next element will start with correct margins and paddings. However when the table flows to the next page, this is not the case. I have attached example document showing that with same content, the first page works correctly, but one next page it does not work correctly.

What could cause this effect?

I have read all the information available, but has not found any hints about this issue. I hope this is something really simple, but I would really appreciate any help or your thoughts about the case.

For me this is show stopper to use prince xml if long tables does not reserve the space they should

Correct behaviour on the first page:
correct.jpg


Incorrect overflowing behaviour the second page:
overflow.jpg


And when generating pdf of dynamic content, it is not possible to add static 50px margin. I have verified the overflow is not static height, but rather linked to the height of the full table. Wrapped texts also affect it. But everything works always if tables fits to the same page.

-Tomi
  1. correct.jpg111.2 kB
    correct
  2. example.html32.2 kB
    html-source
  3. example.pdf41.4 kB
    pdf result
  4. overflow.jpg141.2 kB
    overflow
markbrown
Hi,

This issue has been addressed in the latest builds.

Mark
tomilaurell
Hi,

Thanks for short reply. I used the attached example.html and converted it with latest princexml 14.2 windows version and problem still persists. I have attached converted pdf and here is screenshot of the problem:

prince_14_2.jpg


-Tomi
  1. example_prince_14_2.pdf46.6 kB
    with_prince_14_2
  2. prince_14_2.jpg133.7 kB

Edited by tomilaurell

mikeday
The latest build is newer than Prince 14.2.
tomilaurell
Thanks again.
Verified: It works with latest build.

So all good and big thanks for your efforts.

-Tomi