title: Unable to load PDF Rendering library phpExcel
body: <p>I need to convert xlsx file to pdf in php (codeigniter)</p>
  
  <p>I am using external libraries phpExcel and mpdf. </p>
  
  <p>Following is my code </p>
  
  <pre><code>  $import_file = './Files/test.xlsx';
  
  $sheet_name = 'PG_ONE';
  
  $rendererName = PHPExcel_Settings::PDF_RENDERER_MPDF;
  
  $rendererLibraryPath = '/usr/local/ampps/www/proj/application/libraries/M_pdf';
  
  $object = PHPExcel_IOFactory::load($import_file);
  
  $object-&gt;setActiveSheetIndexByName($sheet_name);
  
  PHPExcel_Settings::setPdfRenderer($rendererName, $rendererLibraryPath);
  
  $objWriter = PHPExcel_IOFactory::createWriter($object, 'PDF');
  
  header('Content-Type: application/pdf');
  header('Content-Disposition: attachment;filename="' . $export_file . '"');
  header('Cache-Control: max-age=0');
  
  $objWriter-&gt;save('php://output');
  </code></pre>
  
  <p>I am getting following error: </p>
  
  <blockquote>
    <p>Type: PHPExcel_Writer_Exception</p>
    
    <p>Message: Unable to load PDF Rendering library</p>
    
    <p>Filename:
    /usr/local/ampps/www/proj/application/third_party/PHPExcel/Writer/PDF/mPDF.php</p>
    
    <p>Line Number: 8</p>
  </blockquote>
  
  <p>Where can I find the pdf rendering library how should I install it.. ?</p>