dougourang1856 2015-05-11 20:59
浏览 42

DOMPDF渲染动态表的解决方案

I am using DOMPDF to render HTML tables. However, because large tables we'll say greater that 150 rows render extremely slowly. I know this is a known issue for DOMPDF.

Does anyone know of any good work around? Maybe using a different html to pdf converter? How to write html code that is formatted like a table without using a table?

Any idea?

  • 写回答

1条回答 默认 最新

  • dongshen3352 2017-03-24 13:52
    关注

    Using big and unnecessary css-files caused slowness for me. I was using 8000 line css-file. Example 1-page pdf rendered 5.5 seconds.

    I removed my css-links from html-template and made a custom css-file containing only things I need ie. bootstrap's grid, table and panel css. Now rendering takes less than 1 second so over 80% render time improvement.

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器