We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
您可以尝试的另一件事是 phantomjs。我自己也将它用于同样的目的,尽管 PDF 的输出有所不同,因为它仍在开发中。
不过 PNG 支持非常棒。
Another thing you might try is phantomjs. I've used it myself for the same purpose, although the output in PDF varies as its still under development.
PNG support is fantastic though.
我们最近实施了 wkhtmltopdf。它使用无头 webkit 渲染器,因此布局与您在 Chrome/Safari 等中看到的非常真实,包括现代 CSS、JS 甚至 SVG。它是跨平台的。并诱导幸福。
We recently implemented wkhtmltopdf. It uses a headless webkit renderer, so the layout is pretty darned true to what you see in Chrome/Safari, etc., including modern CSS, JS and even SVG. It's cross-platform. And happiness inducing.