I've got a lightning component who looks like a web page. The user wants a button to print that as PDF.
I didn't find solution, though I did try some things:
Build a visualforce page with my embedded lightning component. But I can't render the VFP as PDF with the lightning component because the component is added to page using Javascript and render is before in server.
I tried with jsPDF.js library without success.
Javascript
PDF library that works for you. If you want help from us, you will have to be more specific about what did not work. It may be more appropriate to post on Stack Overflow if the error is not Salesforce-centric.