PHPReport icon indicating copy to clipboard operation
PHPReport copied to clipboard

Can't render PDF

Open MoemenMostafa opened this issue 12 years ago • 4 comments

when I render PDF i got the following error in the generated PDF file (when opening it with text editor)


Fatal error: Uncaught exception 'PHPExcel_Writer_Exception' with message 'PDF Rendering library has not been defined.' in D:\xampp\htdocs\php_report\PHPExcel-develop\Classes\PHPExcel\Writer\PDF.php:51 Stack trace: #0 D:\xampp\htdocs\php_report\PHPExcel-develop\Classes\PHPExcel\IOFactory.php(141): PHPExcel_Writer_PDF->__construct(Object(PHPExcel)) #1 D:\xampp\htdocs\php_report\PHPReport.php(980): PHPExcel_IOFactory::createWriter(Object(PHPExcel), 'PDF') #2 D:\xampp\htdocs\php_report\PHPReport.php(906): PHPReport->renderPdf('Report 2012-12-...') #3 D:\xampp\htdocs\php_report\examples\example_9.php(58): PHPReport->render('pdf') #4 {main}

thrown in D:\xampp\htdocs\php_report\PHPExcel-develop\Classes\PHPExcel\Writer\PDF.php on line 51

Could you please help me in this issue?

MoemenMostafa avatar Dec 16 '12 11:12 MoemenMostafa

Download and try PHPExcel 1.7.6 version, PDF rendering has been changed in newer versions. I will fix that in future versions.

You will find 1.7.6 here: http://phpexcel.codeplex.com/releases/view/45412

vernes avatar Dec 16 '12 15:12 vernes

thanks, it is working now.

On Sun, Dec 16, 2012 at 5:19 PM, vernes [email protected] wrote:

Download and try PHPExcel 1.7.6 version, PDF rendering is has been changed in newer versions. I will fix that in future versions.

You will find 1.7.6 here: http://phpexcel.codeplex.com/releases/view/45412

— Reply to this email directly or view it on GitHubhttps://github.com/vernes/PHPReport/issues/2#issuecomment-11418697.

MoemenMostafa avatar Dec 16 '12 16:12 MoemenMostafa

Did it fixed with new version already?

gam6itko avatar Apr 03 '13 16:04 gam6itko

when I render PDF i got the following error in the generated PDF file
Fatal error: Uncaught PHPExcel_Writer_Exception: PDF Rendering library has not been defined. in D:\XAMPP\htdocs\shinchuo\php-report\vendor\phpoffice\phpexcel\Classes\PHPExcel\Writer\PDF.php:48 Stack trace: #0 D:\XAMPP\htdocs\shinchuo\php-report\vendor\phpoffice\phpexcel\Classes\PHPExcel\IOFactory.php(139): PHPExcel_Writer_PDF->__construct(Object(PHPExcel)) #1 D:\XAMPP\htdocs\shinchuo\php-report\PHPReport_pf.php(1007): PHPExcel_IOFactory::createWriter(Object(PHPExcel), 'PDF') #2 D:\XAMPP\htdocs\shinchuo\php-report\PHPReport_pf.php(931): PHPReport->renderPdf('pf_invoice2021-...') #3 D:\XAMPP\htdocs\shinchuo\admin\pf_invoice_excel.php(91): PHPReport->render('PDF') #4 {main} thrown in D:\XAMPP\htdocs\shinchuo\php-report\vendor\phpoffice\phpexcel\Classes\PHPExcel\Writer\PDF.php on line 48

sumitguptamca avatar Oct 01 '21 18:10 sumitguptamca