I am using mPDF and it is not generating pdf on localhost.
<?php
include("mpdf/mpdf.php");
$html='<html>
<body>
<div class="container bor" style="">
<p>Hello World</p>
</div>
</body>
</html>';
$mpdf=new mPDF('', 'A4', 0, '', 2, 2,5, 0, 0, 0);
header("Content-type:application/pdf");
$mpdf->SetDisplayMode('fullpage');
$invoiceno='demo';
$mpdf->WriteHTML($html);
$mpdf->Output($invoiceno.'.PDF','I');
exit;
?>
I have the following error: Fatal error: Switch statements may only contain one default clause in /opt/lampp/htdocs/2018/kunal/mpdf/mpdf.php on line 1422
please help me out.