I would like to create a pdf and send this as an attachment by email right out of a Web/Electron/ Miletus application
This might help:
https://flixengineering.com/archives/1510
combined with FNC PDF generation (see demo BMI app in TMS FNC UI Pack)
This feature was implemented.