Answer the question
In order to leave comments, you need to log in
How to render html to pdf with script execution in html?
Hello. There is a page (loaded by url), it has certain js scripts. You need to load the page, wait until the scripts are executed, and save it as a pdf. All this must be done on the server.
How to implement this?
Answer the question
In order to leave comments, you need to log in
Here is a small list of tools for your task:
HtmlUnit - Java. custom browser engine. JavaScript support/DOM emulated. opensource.
Ghost-Python only. webkit-based. Full JavaScript support. opensource.
Twill - Python/command line. custom browser engine. No JavaScript. opensource.
PhantomJS - Command line/all platforms. webkit-based. Full JavaScript support. opensource.
Awesomium - C++/.Net/all platforms. Chromium based. Full JavaScript support. commercial/free.
SimpleBrowser - .Net 4/C#. custom browser engine. No JavaScript support. opensource.
ZombieJS - Node.js custom browser engine. JavaScript support/emulated DOM. opensource.
EnvJS - JavaScript via Java/Rhino. custom browser engine. JavaScript support/emulated DOM. opensource.
Watir-webdriver with headless gem - Ruby via WebDriver. Full JS Support via Browsers (Firefox/Chrome/Safari/IE).
Spynner-Python only. Pyqt and WebKit.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question