I'm trying to generate a pdf using thymeleaf but the problem is that when generating the pdf, the static resources such as css and js are not being loaded. If I render the html as a web page the resources are loaded perfectly but whenever I generate the pdf the resources are not applied. Does anyone knows if there is a way to solve this?
Thanks in advance.