Html to PDF execute JavaScript


#1

Is it possible to execute Javascript for an html page and then render a pdf? I have a web page uses a lot of javascript and ajax calls to render the page. I would like to do everything the browser would do before saving it as a PDF.


#2

@appdev1

Thank you for contacting support.

We are afraid that you may not execute scripts with the API, at the moment. However, a feature request can be logged to execute custom scripts over the document. Something like:

document.RunScript(string script)

Therefore, please share your source file and expected output as ZIP files so that we may investigate further and help you out.