
6 answers

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