Max
Max

Reputation: 41

Embed JavaScript in PDF with wkhtmltopdf

Is it possible to embed JavaScript code in PDFs generated with wkhtmltopdf?

Upvotes: 4

Views: 1783

Answers (2)

Gareth
Gareth

Reputation: 138082

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.

Upvotes: 3

John
John

Reputation: 5

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.

Upvotes: -2

Related Questions