Asked by: Karthik
In My Laravel Application, I using DOMPDF to generate pdf files. When i convert Portrait Invoices its working properly. When i convert Landscape Invoices Its Display following Error Maximum execution time of 30 seconds exceeded in Frame.php (line 0)
My Controller Code is :
return \PDF::loadView('pdf/invoice', compact('salesinvoiceData','companyData','salesitemsData'))->setPaper('a4', 'landscape')->setWarnings(false)->download($salesinvoiceData->id.'.pdf');
Answers
Answered by: rap-2-h at 2017-07-11 02:21PM
You could increase the max execution time:
set_time_limit(300); // Extends to 5 minutes.
// Then return the PDF
return \PDF::loadView(/* ... */)->download($salesinvoiceData->id.'.pdf');;
See: Fatal error: Maximum execution time of 30 seconds exceeded for more information.
No comments:
Post a Comment