php - PDF generation with Dompdf not working for large data -
i using dom pdf generate pdf file. if there 1000 records in table format of html takes minimum 20 minutes generate of time displaying following error
no data received error 324
data segmentation error.
error 500 server down
is there other easy way generate ? or solutions ?
my controller code:
$view = new view($this, false); $html = $view->element('reports_affiliate');
ini_set("max_execution_time","-1"); $q = new dompdf($html); $q->load_html($html); $q->render(); $pdf = $q->output(); $q->stream( gmdate("d,d m yh:i:s") . " gmt".".pdf");
please note there no problem in sql queries or template files.
i've lot of problem same library. avoid them, i've changed script, adopting tcpdf library . it's install , use, performance. if need high performance, use zend_pdf module.
Comments
Post a Comment