Reputation: 31
I have generated a pdf, from dynamic html, using tcpdf. Now I want to add pages after some rows.
I tried using page-break-after:always
but it has not worked for <tr>
Upvotes: 1
Views: 1378
Reputation: 124297
Yeah, that won't work because of the nature of tables; there's no place to put something "after" a <tr>
. I recommend embedding one of these at the end of the last <td>
in the row you want to break after:
<br pagebreak="true"/>
Upvotes: 1