简体   繁体   English

barryvdh laravel dompdf只翻了两页

[英]barryvdh laravel dompdf rendering just two pages

I am using barryvdh laravel dompdf for rendering pdf from html view in laravel 5.7. 我正在使用barryvdh laravel dompdf从laravel 5.7中的html视图渲染pdf。 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. 它工作正常,但当视图超过2页时,它会剪切页面而不会打印第三页。 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. github存储库中也提到了这个问题 ,但没有人回答。

I am using Laravel 5.7 我正在使用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. 请改用div。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM