I work for a company whose product does this, taken years, to get to where it is now, so easy is relative.
i would create the invoice with html for layout then use TCPDF to convert to pdf (could send html as well or instead) then email. that the process, so what have you tries, where are you stuck?