Forum Bugs

Export table HMTL to PDF cells not stretch to height to 100%

ABS8
Hello,

We have an issue when exporting HTML to PDF. In generated pdf cell does not stretch to height 100%.

Steps to reproduce:

Try to report PDF from the attached HTML file.

Current result:
Table-cell child div is not stretched to 100%.

Expected Result:
Should be the same as HTML example

Best regards,
Andrius Balrunas
  1. example.html2.7 kB
    html example
  2. exportResult.png418.2 kB
    result of exported html to pdf
  3. htmlView.png106.9 kB
    How it looks in html
ABS8
Hello,

are we still waiting for a status update?
mikeday
Sorry for the delay, example.html looks like this in Firefox:
Screenshot 2024-05-25 at 2.38.22 pm.png

This seems consistent with the Prince output. However, strangely it changes if "height: 100%" is applied to either one of the td elements:
Screenshot 2024-05-25 at 2.41.57 pm.png

I'm not sure exactly why this is, and it does not change the Prince output.

We can investigate further, in the meantime perhaps you could achieve the same layout via different means? For example by specifying a fixed height for the table, or by using flexbox layout instead.
  1. Screenshot 2024-05-25 at 2.38.22 pm.png270.2 kB
  2. Screenshot 2024-05-25 at 2.41.57 pm.png269.9 kB