Unexplained table cell spacing for a table spanning multiple pages #3243

miqid opened this Issue Dec 9, 2016 · 0 comments


None yet

1 participant

miqid commented Dec 9, 2016

Hello there,

I've been trying to debug some unexplained occurrences of white space that manifest themselves within table cells.

Below are links to a sample HTML file passed to wkhtmltopdf and the resulting output:

wkhtmltopdf sample.html sample.pdf

sample.html | sample.pdf

I've styled the HTML file to highlight the unexplained white space in yellow. One particularly strange observation is how the white space is variable in height.

My original use case for wkhtmltopdf is through jsreport as the choice of rendering engine. I eventually ruled out jsreport as being a culprit in causing the white space problem because undesirable results were still being produced even when executing the wkhtmltopdf executable (0.12.4, 64-bit, Windows 10) directly. The template I've linked here and the one I actually used in testing with jsreport are slightly different (i.e. removed jsrender templating syntax which I was using to repeat table rows).

Could anybody please shed some light onto why white space with variable heights are being randomly inserted into large tables?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment