rstudio / webshot2

Take screenshots of web pages from R

Home Page:https://rstudio.github.io/webshot2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should have a way to screenshot DOM elements to PDF

wch opened this issue · comments

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