Embed JavaScript in PDF with wkhtmltopdf
开发者_运维技巧Is it possible to embed JavaScript code in PDFs generated with wkhtmltopdf?
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.
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.
精彩评论