I'm currently using DOMPDF and MPDF, and they work well. For some reason I prefer MPDF though support for it has pretty much dropped.
Currently I'm working on something where I need to generate a table:
<body>
<table>
<thead>
<tr><th></th><th></th><th></th></tr>
</thead>
<tbody>
<tr><td></td><td></td><td></td></tr>
</tbody>
<tbody>
<tr><td></td><td></td><td></td></tr>
</tbody>
<tbody>
<tr><td></td><td></td><td></td></tr>
</tbody>
</table>
</body>
As you will see I've got multiple tbody sections. Reason is, I need to make sure that everything within a tbody is not broken when it comes to a page break. I need those set of rows within a tbody to always appear on the same page.
I'd do this by applying the class:
.tbody {page-break-inside:avoid;}
Unfortunately DOMPDF and MPDF do not support this.
I believe wkhtmltopdf does, but the process of using composer to get it up and running and the complcation involved seems a tad bit extreme to me.
Is there a pure PHP PDF generator that could handle this?
Thanks.