[英]PDF Generation hangs using PDFKit and wkhtmotopdf
I'm on OSX Lion using wkhtmtopdf that came with homebrew (0.9.9) and all of the sudden I cannot generate PDFs anymore.我在 OSX Lion 上使用自制软件 (0.9.9) 附带的 wkhtmtopdf,突然间我无法再生成 PDF。 When I tack.pdf on the end of a URL, the wkhtmltopdf process fires up, but the process never completes.
当我在 URL 的末尾添加 pdf 时,wkhtmltopdf 进程启动,但该进程从未完成。 I suspect it's an issue with wkhtmltopdf because the process is not completing when I run it via the cli either.
我怀疑这是 wkhtmltopdf 的问题,因为当我通过 cli 运行它时,该过程也没有完成。 When I issue the following command, I get a test.pdf file, but the process never finishes, even though it says "done".
当我发出以下命令时,我得到一个 test.pdf 文件,但该过程从未完成,即使它显示“完成”。
Is there something I can do to force the process to complete?我可以做些什么来强制完成该过程吗?
curl google.com | wkhtmltopdf - test.pdf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 219 100 219 0 0 1685 0 --:--:-- --:--:-- --:--:-- 5475
Loading page (1/2)
Printing pages (2/2)
Done
Turns out it had nothing to do with the cli and it was actually due to Jammit running in development.事实证明它与 cli 无关,实际上是由于 Jammit 在开发中运行。 Disabling Jammit fixes the PDFkit hanging issue.
禁用 Jammit 修复了 PDFkit 挂起问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.