How to export a Knowledge article to pdf through scripting?

skumars1808
Tera Contributor

Hi,

I need to add a UI action "Send email" in the kb_knowledge table. On click of the UI action, a pop up should display asking for an email address. On entering the email address, it should export the knowledge article to pdf and send an email as an attachment to the mentioned email address.

How can I export the knowledge article in pdf using script?

5 REPLIES 5

skumars1808
Tera Contributor

How can I attach the generated pdf file in the email?