Skip to main content
Hi,

In my lightning component, I want a button to download email template in PDF format. we have renderAs PDF option in VF page. Do we have similar option to download page/ template in PDF?

Thanks in Advance!! :)

Regards,

Ganesh.

 
6 answers
  1. Dec 1, 2015, 3:41 PM
    Components are a completely separate set of tags and functionality than that of VF.  Perhaps someone else will correct me, but I don't believe this is supported in Lightning, at least yet.  Instead, you could either use a visualforce page that is rendered as a PDF and then reference that in your lightning component via javascript, or use a third party JavaScript PDF library such as https://parall.ax/products/jspdf
0/9000