Welcome Guest, Not a member yet? Register   Sign In
domPDF doesn’t work
#1

[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-
#2

[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);
}
#3

[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?
#4

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

Thanks for reply Smile.




Theme © iAndrew 2016 - Forum software by © MyBB