The following code works in phpmaker 2020 but does work in phpmaker 2022. How can I make it work in phpmaker 2022?
$html = "<h1> WELCOME TO PHP Dompdf </h1>";
use Dompdf\Dompdf;
ob_get_clean(); // Clear Buffer - this is very important!!!
$document = new Dompdf();
$document->loadHtml($html);
$document->setPaper('A4', 'portrait');
$document->render();
$document->stream("Payslips", array("Attachment"=>0));