laravel-pdf
laravel-pdf copied to clipboard
make empty pdf
hi i use it . When I put a text directly in the view. The output of the pdf file is correct But when I send data and get output from the data. The pdf file is stored as blank pages
controller :
$res = Order ::with('tour')
-> with('passenger')
-> with('agancy')
-> find($id);
` $pdf = PDF::loadView('pdf.document',['res'=>$res]);
return $pdf->download('invoice.pdf');`
@AfshinEfati how your pdf.document looks like? see if you put {{ $res->id }}
in the pdf.document its show correct output
@od3n Hi, I have the same problem. can I have full code in controller and view to loop datatable please
Hey Afshin, Please provide your full view template codes so we can check it better.
Hi, I have the same problem. Is there a solution to this?
Hi, I have similar problem. Mine is not rendering the PDF. It is just loading and timeout. How can I solve this