使用 wkhtmltopdf 在 PDF 中嵌入 JavaScript
Is it possible to embed JavaScript code in PDFs generated with wkhtmltopdf?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
Is it possible to embed JavaScript code in PDFs generated with wkhtmltopdf?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
理论上是的,wkhtmltopdf 的更改日志表示这是一个功能在最新版本中。当然,您可以用它做的事情是有限的 - 并且该更改日志中链接的实现与官方 Adobe 文档不同。
In theory yes, the change log for wkhtmltopdf says that this is a feature in the most recent release. Of course the amount you will be able to do with it is limited - and the implementation linked to in that change log is different to the official Adobe documentation.
我认为这是不可能的。 pdf 转换器仅渲染遵循您的最终 html 输出...
Javascript 总是在加载或与 DOM 交互时运行。所以这是不可能的。
I don't think it is possible. The pdf converter only render follows your final html output...
Javascript always run when load or some interact with DOM. So it is not possible.