Embed JavaScript in a PDF using wkhtmltopdf

Is it possible to embed JavaScript code in PDF files generated using wkhtmltopdf?

+4
source share
2 answers

In theory, yes, the change log for wkhtmltopdf says this is a feature in the latest version. Of course, the amount that you can do with it is limited - and the implementation associated with this change log is different from the official Adobe documentation.

+3
source

I do not think that's possible. The PDF converter only outputs your final html output ... Javascript always starts when loading or interacting with the DOM. So this is not possible.

-2
source

Source: https://habr.com/ru/post/1337229/


All Articles