This project has moved. For the latest updates, please go here.


PDF Rendering library has not been defined (1.8.0)


I've upgraded to PHPExcel 1.8.0 from 1.7.4. Exporting to the PHPExcel_Wrtier_PDF is now creating an error:
PHPExcel_Writer_Exception [ 0 ]: PDF Rendering library has not been defined.
Here is the code:
$objWriter = new PHPExcel_Writer_PDF($objPHPExcel, 'PDF');
Writing to an excel file works fine:
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');

And there is no issue in when using PHPExcel 1.7.4.
Closed Mar 12, 2014 at 11:02 PM by MarkBaker
That's because there have been a few changes between 1.7.4 and 1.8.0 - No PDF rendering library is bundled with PHPExcel any more, you are free to select and install your own choice of tcPDF, mPDF or DomPDF and point PHPEXcel to use that library, as described in the examples and documentation