Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vandan's avatar
Level 13

img not found or type unknown

hii

when i try to html to pdf convert using dompdf then image cannot show error like "img not founf or type unknown"

here is my controller code

	$pdf = PDF::setOptions(['isHtml5ParserEnabled' => true, 'isRemoteEnabled' => true])->loadView('client.template.invoice',$pdfData)->setPaper('a4','portrait');
    $pdfName = $brand->brand_name.'.pdf';
    $pdf->save(public_path().'/'.'brandZip/'.$brand->brand_name.'/'.$pdfName);

here is my blade file

	<img src="{{ public_path('/images/avatar.jpg') }}" alt="img">

pdf download successfully but image not showing in pdf

0 likes
0 replies

Please or to participate in this conversation.