dompdf : image not found or type unknown I applied all the possible methods

Viewed 9

Here is my code I tried all the methods related to the answers concerning the question and my problem is still not solved:

public function downloadPdf($id){
    $eleve = Eleve::find($id);

    $contxt = stream_context_create([
    'ssl' => [
        'verify_peer' => FALSE,
        'verify_peer_name' => FALSE,
        'allow_self_signed'=> TRUE
        ]
        ]);
    $pdf = PDF::setOptions(['isHtml5ParserEnabled' => true, 'isRemoteEnabled' => true]);
    $pdf->getDomPDF()->setHttpContext($contxt);

    $pdf->loadView('carte',compact('eleve'));

    return $pdf->download('carte.pdf');
}
profil) }} " width="70px" height="93px" alt="">
0 Answers
Related