Convert Email Body into Attached PDF

Hi,
I am sending emails using frappe.sendmail) function form back end,
in sendmail’s message parameter i am giving html code to generate email body, like frappe.sendmail( message = “

Demo

”, it is about 200+ lines of html code,
What i want is to instead of sending the html format in email body, it should convert in PDF format through html, and in email it should send as an attachment,

Can anybody please help me in this case?

Try a search like “pdf attach” to get you pointers like this

I’ve tried but didn’t find any post related to the same case as mine, that’s why i created a new post.

help??