Welcome Guest, Not a member yet? Register   Sign In
DOMPDF (2.0.0) PNG Image loading issue . PHP version 8.0.17

Hey all, 
I am having an issue with DOMPDF image loading. I tried all the way to load the image but it won't work on my local / server. 
When I try with the full URL it is returning an "Allowed memory size" error.
Please help me if you have an idea of how to resolve this issue. 
I really appreciate any help you can provide. 

My Controller, 
   #Contract file name 
        #return view($this->path_views . 'contract', $data);
        #viewpage data
        $this->dompdf->loadHtml(view($this->path_views . 'contract', $data));
        $this->dompdf->set_option('isRemoteEnabled', TRUE);
        $this->dompdf->set_option('defaultMediaType', 'all');
        $this->dompdf->set_option('isFontSubsettingEnabled', true);
        $this->dompdf->set_option('isPhpEnabled', true);
        #$pdf = $this->dompdf->output();
        #file_put_contents("contract", $pdf);
        $this->dompdf->stream( $contract, array("Attachment" => false));

        $options = new Options();
        #$options->set('defaultFont', 'Courier');
        $options->set('defaultFont', 'Helvetica');
        $options->set('isRemoteEnabled', TRUE);
        $options->set('isHtml5ParserEnabled', true);
        $this->dompdf = new Dompdf($options);

            <table width="100%">
                    <td width="20%"> <img src="../../../logo.png" /></td>
                    <td class="title" width="60%">

This is Codeigniter 4 forum head to DONODF GitHub to submit issues.

DOMPDF needs huge memory.
All you can do is to increase the memory for PHP.

Theme © iAndrew 2016 - Forum software by © MyBB