Issue metadata
Sign in to add a comment
|
page-break-* not working for me
Reported by
bpdar...@gmail.com,
Oct 1 2016
|
||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Steps to reproduce the problem:
page-break not work on element table in chrome but firefox ok all
What is the expected behavior?
What went wrong?
I am generating a pdf with wkhtmlpdf but when printed a table the last row is at the end and beginning of another page
my CSS :
div.nobreak:before {
clear: both !important;
}
div.nobreak {
page-break-inside: avoid !important;
}
div.alwaysbreak {
page-break-before: always !important;
}
My html :
<div class="alwaysbreak">
<table class="table table-condensed" id="model_table">
<thead>
<tr id="model_thead_row">
<th><div class="wrap-pdf">Urbanization</div></th>
<th><div class="wrap-pdf">Contract</div></th>
</tr>
</thead>
<tbody id="model_tbody_row">
<tr>
<td class="text-primary"><div class="wrap-pdf"><strong>1500700002</strong></div></td>
<td><div class="wrap-pdf">19 sep 2015</div></td>
</tr>
<tr>
<td><div class="wrap-pdf">NEWYORK VII</div></td>
<td class="text-primary"><div class="wrap-pdf"><strong>1500700003</strong></div></td>
</tr>
.....more trs
</tbody>
</table>
</div>
Did this work before? N/A
Chrome version: 52.0.2743.116 Channel: n/a
OS Version: Ubuntu 16.04
Flash Version: Shockwave Flash 22.0 r0
I've been several days without solving this problem,
help please
,
Oct 3 2016
Tested the issue in Linux-14.04 Ubantu-Chrome Version 53.0.2785.116 with the sample code given in Comment1-Observed some text in a single page as shown in the screenshots. Could you please provide another sample html file where we can see this page break issue.
,
Oct 5 2016
This looks like it could be a bug in wkhtmlpdf. Does the bug happen in other web browsers as well (Firefox, IE/Edge)?
,
Oct 14 2016
,
Oct 26 2016
Closing due to lack of feedback requested in #2 and #3. We need more content to determine the cause and it hasn't been provided. If this is still an issue please open a new issue with the entire reproducible HTML content. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by bpdar...@gmail.com
, Oct 1 2016excuse me wrong in the html is: <div class ="alwaysbreak"> <table class="table table-condensed" id="model_table"> <thead> <tr id="model_thead_row"> <th><div class="wrap-pdf">Urbanization</div></th> <th><div class="wrap-pdf">Contract</div></th> </tr> </thead> <tbody id="model_tbody_row"> <tr> <td class="text-primary"><div class="wrap-pdf"><strong>1500700002</strong></div></td> <td><div class="wrap-pdf">19 sep 2015</div></td> </tr> <tr> <td><div class="wrap-pdf">NEWYORK VII</div></td> <td class="text-primary"><div class="wrap-pdf"><strong>1500700003</strong></div></td> </tr> </tbody> </table> </div>1.8 MB
1.8 MB View Download