Hi, I am using Aspose.PDF.Generator and I want to convert HTML pages to PDF. The HTML page is built using JavaScript files. Is it possible to do this? If so, how do I get the javascript to work? Do you have any examples referencing JavaScript files? I am reading the HTML from a MemoryStream using the URL.
Thanks for your inquiry. I am afraid the requested feature is not supported at the moment in Aspose.Pdf. However, we have already logged a feature request as PDFNEWNET-34390 for support of JavaScript in HTML to PDF conversion. We will notify you as soon as it is implemented.
I have tested HTML to PDF conversion scenario using your shared HTML and noticed JavaScript code is not executed during the conversion, so we have linked your post to the issue PDFNEWNET-38447 logged for the purpose.
Furthermore, new DOM approach for HTML to PDF conversion supports almost all the feature of HTML and HTML5 along with CSS3.
We are sorry for the inconvenience caused.
Best Regards,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.