Conversion of html to pdf using java

281 Views Asked by At

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.

0

There are 0 best solutions below