Skip to content

Converting slides to PDF

Salil Deo edited this page Jun 3, 2021 · 9 revisions

Slide conversion from html to pdf

  • To convert slides to pdf, the slide deck can be opened in google chrome and then save them as PDF.

Saving html slides as PDF using Google Chrome

  • Another easy option is to use the pagedown library and pagedown::print_chrome() function. The input should be the html file and if output is left blank, the PDF is saved to the same folder location.

  • If users incorporate customisation using the xaringanExtra package by Garrick Aden‑Buie, then, the Google chrome method may not work. In that case, Garrick Aden-Buie provides a function here that can be used to save slides as PDF.

Clone this wiki locally