Rowspan and page-break #3252

Open
MrFr1day opened this Issue Dec 15, 2016 · 2 comments

Projects

None yet

2 participants

@MrFr1day

Hi,

In the attached example (html & pdf), you'll find that that wkhtmltopdf is ignoring the "page-break-inside:avoid" for rowspan cells.

Is there a workaround for this?

Thanks.

v 0.12.3.2
Windows 7 x64

Rowspan.zip

@bree29
bree29 commented Dec 17, 2016

Hey !
I was looking for a solution to your issue, and I can't make it work.
The .NextRow class should be with div ; but div are not allowed in tables...

An alternate way I treated that kind of problem with my JPG Blend was to, after we know how height my jpg has to be (minimum and maximum) ; making div with page-break-inside:avoid class around ?

Exemple :

<style> .nextpage { page-break-inside:avoid; }
<div class = .nextpage><table>
[[WHAT YOU WANT BUT AT LEAST MORE THAN PAGE / 2, and AT MAX THE ENTIRE PAGE]]
</table></div>
<style> .nextpage { page-break-inside:avoid; }
<div class = .nextpage><table>
[[HERE IT GOES AGAIN]]
</table></div>

Gimme some news ?

Bree

@MrFr1day

Hello bree29,

I was hoping I can avoid splitting the table because I don't know how to calculate the size of each group-of-rows (3 rows) + a table header in each page.

Counting the letters in each cell (the only solution I know) is not a fail-proof solution since some letters take more space than others.

And putting each group in their own table is not an option either.

Thanks.

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