Forum How do I...?

Table looks very different after running through prince

The table ends up spanning over many pages. I'm not sure if this is a bug or a feature. When the html is viewed in a browser it looks fine. I've pinpointed the problem to the height attribute on the 'td' element and trimmed the html to an example that can be reproduced, which I've attached. Does anyone know how I can have the table in the pdf only show up on one page?

EDIT: I've reproduced this with prince version 8.1 and 10
  1. example.html0.8 kB
  2. example.pdf19.8 kB
Odd, we will investigate. :)
It seems that this is an unfortunate side-effect of the way we perform table layouts when a large height is specified on the table cell. We will try to find a solution for this issue and release an updated Prince build shortly. A workaround is to reduce or remove the height on the cell.
We now have a fix for this available in the latest build.