I'm using Node Puppeteer to generate a PDF from a webpage using Chrome Headless. It works really well, apart from a small issue I'm coming across where if a table spans over more than one page sometimes one of the rows will appear larger than expected and the date column having text appear at the top of the row.
This is how it looks in the browser
This is how it is rendered on the pdf (some parts are blurred for confidentiality)
As you can see on the created column on the second page in the PDF view the date and time in the first row are distorted. There is nothing unusual about that row in the html version.
The table follows this structure;
<table> <thead> <tr> <th>Project</th> <th>Status</th> <th>Creator</th> <th>Created</th> </tr> </thead> <tbody> <tr> <td> <div>Project Name</div> <div>Reference</div> </td> <td> <img src="status.png" alt="Some Stagus"> Some Status </td> <td> <div class="avatar"></div> </td> <td> <div>29/10/2020</div> <div>10:00:00</div> </td> </tr> </tbody> </table> I'm not sure if this is a bug with chrome headless, when I print preview in chrome is shows the same issue as the generated pdf. Any suggestions or pointers would be very welcome.


tr { min-height: 100% !important }