I want to convert html response to pdf file using JAVA. But the problem is that the HTML page contains some JSON part which creates a problem and throws an error while converting it to pdf. So, I want some possible solution in java to convert a mixture of HTML and JSON into a pdf file. Any help will be appreciated.
I have tried java library htmltopdf converter but it's throwing an error due to JSON value in HTML.