Replace dompdf (don't convert from html to pdf)

mPDF offers to generate PDF Files with PHP as well as html.

Basic example

$mpdf = new \Mpdf\Mpdf();

$html .= '<h2>Invoice</h2>';
$html .= '<table>';
$html .= '<tr>';
// ...

$mpdf->setFooter('{PAGENO}');
// Where's the Page Numbering with dompdf?
$mpdf->writeHtml($html);
$mpdf->output();

There’s even comparable methods for either php and html such as

<pagebreak> 
// same as
$mpdf->AddPage();

Obviously the current html version which is found by invoiceplane can also be converted to pdf that way.

I am just saying dompdf is quite limiting and is past it’s prime. at least at how i see the options we have currently.

Template wise it might not be identical, but it could still be manageable once there’s a thoughtful way of keeping everything quite flexible.