title: Class 'Mpdf\Mpdf' not found error in Phpspreadsheet
body: <p>I'm trying to convert excel file directly to PDF with the help of PHPSpreadsheet. but got an error "<strong>Class 'Mpdf\Mpdf' not found</strong>", Here is my code:</p>
  
  <pre><code>&lt;?php 
    require 'vendor/autoload.php';
    use PhpOffice\PhpSpreadsheet\IOFactory;
    use PhpOffice\PhpSpreadsheet\Worksheet\PageSetup;
    use PhpOffice\PhpSpreadsheet\Reader\Xlsx;
    use PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf;
  
    $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
    $reader-&gt;setReadDataOnly(true);
    $spreadsheet = $reader-&gt;load("excel.xlsx");
  
  
    // when I use this MPDF class, I'm getting an error Class \Mpdf\Mpdf not found
  
    $writer = new \PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf($spreadsheet);
    $writer-&gt;save("excel.pdf");
  </code></pre>
  
  <p>Kindly Help with above code. </p>
  
  <p>Thanks</p>