We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Execute javascript embedded in web page when converting HTML to PDF

Hello,

I am trying to use ASPOSE.PDF for JAVA to convert a web page (passing the url) to PDF. The web page contains javascript code (this code manipulates the display of page elements) that needs to be executed before converting to PDF.

Does ASPOSE.PDF support executing javascript code before converting HTML to PDF?

Thanks,

@amsaddi

Could you please ZIP and attach your HTML and expected output PDF here for our reference? Please also share what kind of JavaScript actions you want to perform before HTML to PDF conversion. We will then provide you more information about your query.

ResHTML.zip (50.2 KB)
The html is attached.

It contains javascript code that:
1- Calls a Web API located on intranet and displays the result in the HTML.
2- Loops over an html table and hides some cells of this table (If this script does not run, you will see a column that its cells contain the word “Va;idated”)

Thanks,.

@amsaddi

Unfortunately, Aspose.PDF does not provide the requested feature. However, we have logged it as PDFNET-50938 in our issue tracking system. You will be notified via this forum thread once this feature is available. We apologize for your inconvenience.