Learn how to generate dynamic PDF in Magento 2 programmatically and send that PDF file as an attachment to Email just by creating two simple files using a small piece of code.
Attachment 13719
for more tutorial: How to Send Magento 2 Generated Dynamic PDF in Email to Customers