I have got a requirement to send PDF via email based on some conditions through logic hook. This PDF is designed in SugarCRM PDF Manager (Sugar 126.96.36.199 ENT). Now, if I try to download or email from module record view, it works perfectly. But, I am not sure how I can generate it in back-end and send as an attachment to custom email.
I looked into how sugar does it, but that includes $_REQUEST parameters and hence not easy to extend. I also checked this post How to create beautiful PDFs with CSS within Sugar « Sugar Developer Blog – SugarCRM but no luck.
Any helpful piece of advice or information is greatly appreciated.