0

我正在使用 wkhtmltopdf(通过 PHP 包装器)将一些 html 文件转换为 pdf。总而言之,它运行良好,但在 20% 的情况下,它只是在没有任何信息的情况下崩溃。因此,在不更改输入文件的情况下,它有时可以正常工作,有时却不能。

这是我通过失败得到的输出:

Could not create PDF:
Could not run command '/www/htdocs/example/projekte/example/test/wkhtmltopdf-amd64' --ignore-load-errors "http://www.example.de/projekte/example/test/ebene/example/lieferschein-geschirr-material/lieferschein-geschirr-material.php?PHPSESSID=250cd07e432cd69eba2aa51054577d63&testmodus=1" /tmp/tmp_WkHtmlToPdf_CkYxRt:
Loading pages (1/5) [> ] 0% [======> ] 10% [============> ] 21% [===============> ] 25% [============================================================] 100% Resolving links (2/5) [============================================================] Page 1 of 1 Counting pages (3/5) [============================================================] Page 1 of 1 Printing pages (5/5) [> ] Preparing [=======> ] Page 1 of 8 [===============> ] Page 2 of 8 [======================> ] Page 3 of 8 [==============================> ] Page 4 of 8 [=====================================> ] Page 5 of 8 [=============================================> ] Page 6 of 8 [====================================================> ] Page 7 of 8 [============================================================] Page 8 of 8 Done

我对此没有任何解释。有谁可能知道这个问题并可以提供帮助?

4

1 回答 1

0

如我所见,您输入了错误的 o/p 文件。使用它 /tmp/tmp_WkHtmlToPdf_CkYxRt.pdf而不是 /tmp/tmp_WkHtmlToPdf_CkYxRtie 你在调用类函数时遇到了一些问题。

于 2013-06-05T13:58:49.277 回答