Attach a generated PDF to an email automatically

You can do that when exporting to pdf demos, we generate an email with the document?

You can create a PDF file using http://html2pdf.fr and then attach that PD file to an email