重复的表头与内容重叠

时间:2019-04-04 14:36:22

标签: wkhtmltopdf phpwkhtmltopdf

发现不支持flex box之后,我将所有CSS都修改为Floats和Tables。但是渲染的PDF仍然损坏。问题是,由于内容不适合一页而创建分页符时,新页面上重复的表头与内容重叠。在Chrome中不会发生这种情况。有什么我可以解决的方法吗?

我正在测试的页面是here

如果您在Chrome中检查打印预览,则可以看到重复的标题没有覆盖内容,而是将内容下推。 示例:enter image description here

当我使用以下命令运行WK时:

"/c/Program Files/wkhtmltopdf/bin/wkhtmltopdf.exe" \
--disable-smart-shrinking \
--print-media-type \
https://www.idc.com/cee/events/64662-web-developers-event-for-automatic-tests-on-idc-com-do-not-update-manually/print-agenda \
~/output.pdf

在PDF中,重复的标题和在前一页上拆分的内容会发生很多重叠。 例: enter image description here

0 个答案:

没有答案