Oops, I think I have confused the program size increase required to support email on different ports with that required to support a fully functional pdf generator Emailing of reports - #23 by lubos So it is possible but required embedding chrome.
However I have trouble believing there is not a better way such as using https://mozilla.github.io/pdf.js/getting_started/ or https://en.wikipedia.org/wiki/Poppler_(software) but I’m probably looking for the wrong thing