Should have a way to screenshot DOM elements to PDF
wch opened this issue · comments
Winston Chang commented
Currently it's only possible to print an entire web page to standard paper size PDFs. The strategy used by puppeteer could be used to generate PDFs of specific DOM elements:
https://github.com/GoogleChromeLabs/puppeteer-examples/blob/master/element-to-pdf.js