【发布时间】:2016-03-26 15:44:29
【问题描述】:
我正在玩 pdf 生成。在 dompdf 和 tcppdf 的 silverstripe 模块不能像我想要的那样工作之后,我遇到了 BetterBrief 的 wkhtmltopdf 模块 https://github.com/BetterBrief/silverstripe-pdf
这应该正是我所需要的,但我不知道为什么它不创建 pdf。我按照模块说明使用composer安装了它,然后我安装了debian应用程序并设置了一个只有三个单词的演示模板来测试ist。但是无法创建pdf文件。
我收到的错误如下,对我帮助不大http://www.sspaste.com/paste/show/5676bac4a4186
也许有人遇到过同样的问题或知道解决方案。
从命令行创建 pdf 作品
wkhtmltopdf http://google.com google.pdf
编辑 这不是这个问题的真正解决方案,而是使用 SilverStripe 和 wkhtmltopdf 创建 pdf 的替代方案。 https://github.com/creativeSynergy/silverstripe-wkhtmltopdf
【问题讨论】:
-
tcpdf 怎么不起作用?我发现最可靠且不需要额外的服务器安装...
-
Tcpdf 正在工作,但它没有按我的意愿工作 ;) 我需要 CSS3 支持,因此 wkhtmltopdf 是完美的
标签: pdf-generation wkhtmltopdf silverstripe