I am using barryvdh laravel dompdf for rendering pdf from html view in laravel 5.7. It was working fine but when the view exceeds to more than 2 pages it cuts the page and does not print the third page. However if i copy all the page data and paste it somewhere else the who content is pasted which means the content is there somehow but not showing.
This issue was also mentioned in the github repository but was not answered by anyone.
I am using Laravel 5.7
This is code :
$pdf = PDF::loadview('emails.send-email.case-email-pdf', compact('pdf_data'));
$file_name = 'case-email-'.$data['case_id'].str_random(10).time().'.pdf';
Storage::put($config['folder'].'/'.$file_name,$pdf->output());
The solution was to NOT USE table tag. Use divs instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With