The package pdf2pptx is a simple tool for converting PDF presentations into PPTX format (based on images).
It is implemented in R to easily extend R Markdown workflow. This way you can convert your presentation to PPTX and easily present on platforms like MS Teams, where PDF presentation is problematic. Other potential use cases are recording audio comments or inserting your slides into a larger presentation.
The resulting PPTX is editable - meaning you can add some additional images or overlay content. Because the slides are rendered as images, the text is naturally not editable.
Under the hood, the package uses officer
, magick
, pdftools
packages.
You can install the released version of pdf2pptx from GitHub with:
# Install devtools package if necessary
if(!"devtools" %in% rownames(installed.packages())) install.packages("devtools")
# Install the stable verion from GitHub
devtools::install_github("jirilukavsky/pdf2pptx")
To convert a PowerPoint file, simply call pdf2pptx
command and specify the source and destination file names:
library(pdf2pptx)
pdf2pptx("your.pdf", "your.pptx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.