posted 2 years ago
This is a spring boot project making use of the Thymeleaf template engine. I have a project where I can send mail to the hardcoded mail id. The problem is with the pdf generation using Thymeleaf. I am able to create a pdf but it is getting stored in the boot and not in any external folder. I wanted to send the generated pdf along with the mail when I run the program. I have made use of flying saucer for the pdf and below is my code. The problem I am facing is that I am not able to integrate blank generated pdf into the mail sent. Could really use some help with this.
Entity Class:
EmailService Class:
PdfService Class:
Thymeleaf Configuration Class:
Main Class:
Html Template FIle: