Sonali Thakkar
Sonali Thakkar

Reputation: 31

Adding pages to tcpdf document genrated from dynamic html

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

Answers (1)

chaos
chaos

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

Related Questions