Automatically generate invoice PDF and send it by email

Hi,

I have created a workflow which sends an email as soon as an invoice is created in the CRM. The email is defined using an email template.

What I would like to do in the workflow is to first generate the PDF of the invoice which is then attached to an email and sent to the customer.

Is it possible to automatically generate an invoice PDF and send it by email?

Anyone?

I’m able to generate automated emails, but I don’t know how to attach a PDF to them.

Would be interesting for me too.