dtq7387 2013-09-18 15:08
浏览 57

DomPDF问题 - 巨大PDF上的随机空白页面

I've been using DomPDF within CodeIgniter to generate a catalogue with over 200 pages of data. Within this there are many, many tables with multiple styles attached to them.

Although I'm not using any CSS page-break attributes, it seems there are random spurs of blank pages spread throughout the generated document. Sometimes even 15 in a row. Is there any explanation as to why this is happening or any potential fixes that anyone knows of?

I can't seem to find anyone else who is having a similar problem so I have no reference.

The generation code used in the view can be found here: https://gist.github.com/sixteenstudio/22e7027706defd8df35b

And the DomPDF generation initialization code looks like this:

$dompdf = new DOMPDF();
$dompdf->set_paper('A4', 'portrait');
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("catalogue.pdf");
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料