The following is a guideline only. I personally haven't created this very thing, but will probably do so in the next few days to verify that it is possible.
1. Obviously you'll need to have a functional eCart transaction.
2. I personally use a product called ezPDF to create PDF files using MySQL queries.
3. Once you have the output for the PDF creating the way you want it to, you can then include the PDF as an attachment that Universal Email sends out with the confirmation.
I hope that helps.