Jul 29, 2021
0
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
Please or to participate in this conversation.