CodeIgniter Forums
domPDF doesn’t work - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: domPDF doesn’t work (/showthread.php?tid=12714)



domPDF doesn’t work - El Forum - 10-29-2008

[eluser]B3ll4triX[/eluser]
maybe is simple question. i'am try to generate html pages to pdf with dompdf. But, i get some error like this.

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1572864 bytes) in D:\@ Server\wamp\www\unisba\system\plugins\dompdf\lib\class.pdf.php(2219) : eval()'d code on line 5914

How to fixed this problem

-th4nx b4-


domPDF doesn’t work - El Forum - 10-29-2008

[eluser]B3ll4triX[/eluser]
Problem Solved...

But, I have new problem.

Unable to stream pdf: headers already sent

controller:
Code:
function to_pdf_post($id = ''){
    $this->load->plugin('to_pdf');
        
    $data_show = $this->mdl_halaman->select_post_id($this->jur, $id);
        
    $data = array(
        'head_title'    => $this->head_title,
        'title'     => $this->title,
        'kode'        => $this->jur,
        'post_id'    => $data_show,
        'segment1'    => $this->segment1
    );
        
        $html = $this->load->view('v_pdf.php', $data, true);
         pdf_create($html, $data_show->title);
}



domPDF doesn’t work - El Forum - 10-29-2008

[eluser]Derek Allard[/eluser]
I've moved this into the Application development forum to try to get some more eyeballs on it for you. Have you searched the forums for that error message?


domPDF doesn’t work - El Forum - 10-29-2008

[eluser]B3ll4triX[/eluser]
Problem solved. Just to delete end sintax ?> on plugin. And dompdf work very well...

Thanks for reply Smile.