Aspose.pdf for Java HTML Canvas Support

Hello,

I am looking for a solution to convert dynamically generated HTML and CSS to PDF when the user clicks a print icon. The PDF conversion should look identical to the Web Browser which includes Canvas elements. While I understand That HTML & CSS Conversion is possible for the Java Version I need to make sure the Canvas elements will not be affected as the graphs and charts are important to the user. Any help would be wonderful.

Thanks

Josh

Hello Josh,

Aspose.Pdf for Java supports the conversion of HTML contents into PDF format using InLineHTML approach i.e. read the contents of HTML file into Text object and call setIsHtmlTagSupported(…) with true as argument. Can you please try using our product and in case you encounter any issue, please feel free to contact. In order to read the contents of HTML file into Text object, please try using the code snippet specified over Converting text file to PDF

In case you encounter any issue, please share the sample HTML file so that we can test the scenario at our end.