Generate PDF using code from members page

Bumping this question up since it has no answers and I have not found the npm modules to be a suitable solution (10 steps for low-quality results)…

Like @thrishtilabs , I would like the user to click on a button and export his member page (a sort of dashboard with hyperlinks) as a pdf.

The dream would be to be able to export a specific element, a simple line of code would look like:

$w( “#dashboard” ).pdfExport ();