Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't render PDF #2

Open
MoemenMostafa opened this issue Dec 16, 2012 · 4 comments
Open

Can't render PDF #2

MoemenMostafa opened this issue Dec 16, 2012 · 4 comments
Assignees
Labels

Comments

@MoemenMostafa
Copy link

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?

@vernes
Copy link
Owner

vernes commented Dec 16, 2012

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

@ghost ghost assigned vernes Dec 16, 2012
@MoemenMostafa
Copy link
Author

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//issues/2#issuecomment-11418697.

@gam6itko
Copy link

gam6itko commented Apr 3, 2013

Did it fixed with new version already?

@sumitguptamca
Copy link

sumitguptamca commented Oct 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants