pdf2pptx: Convert PDF to PPTX

Description Usage Arguments Value Examples

View source: R/pdf2pptx.R

Description

Convert PDF to PPTX

Usage

1
2
3
4
5
6
7
8
pdf2pptx(
  pdf_filename,
  pptx_filename,
  dpi = 300,
  path = NULL,
  ratio = c(43, 169),
  template = NULL
)

Arguments

pdf_filename

File name of the source PDF file

pptx_filename

File name of the destination PPTX file

dpi

Optional parameter specifying image density for rendering images from PDF

path

Directory where to put rendered images. If NULL, temporary folder is used and the images are deleted.

ratio

Fast option to switch between 4:3 (default) and 16:9, without the need to add new template.

template

Alternative PPTX file used as template. Useful for different aspect ratios.

Value

Nothing

Examples

1
2
3
4
5
example_from_url <-
  "http://mirrors.ctan.org/macros/latex/contrib/beamer-contrib/themes/metropolis/demo/demo.pdf"
# conversion takes several seconds
pdf2pptx(example_from_url, "demo.pptx")
unlink("demo.pptx")

jirilukavsky/pdf2pptx documentation built on Sept. 28, 2020, 12:44 a.m.