【问题标题】:wkhtmltopdf doens't print entire pagewkhtmltopdf 不打印整个页面
【发布时间】:2015-04-03 18:38:04
【问题描述】:

我正在使用 wkhtmltopdf,但我的网站在底部被截断了。

html 包含多个表格和一些 css。一切看起来都很好,只是它没有创建多个 A4。

在每个表之间我放置了一个带有“分页符”类的 div,但它仍然不起作用。是否有任何体型或必须设置的东西?

.pagebreak { page-break-before:always; }

终端命令:

wkhtmltopdf --margin-right 0 --margin-top 0 http://localhost:8000/invoice_de invoice_de.pdf

HTML:http://codepen.io/anon/pen/MYEzgp

【问题讨论】:

  • 可以把invoice_de的内容分享给我们测试一下吗?
  • 嗨@Nenotlep。在哪里可以找到错误。你是我的“最后”希望 :) 谢谢你的帮助!!!!1

标签: html pdf pdf-generation wkhtmltopdf


【解决方案1】:

好的,

我发现了错误。

html {
  overflow: hidden;
}

问题出在哪里……

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-05
    相关资源
    最近更新 更多