0

I have a set of files all with 1 slide created with a custom template created with R officer package

Would like to print these individual slides as jpg or png. Current workflow is to print individual pptx files using the inbuilt print function and converting to image outside of R. The process to convert to image using office "Save As" function or a script is cumbersome.

Is there a plan to add this feature?

Jai
  • 321
  • 1
  • 8

1 Answers1

2

The package {doconv} can help you.

See https://cran.r-project.org/web/packages/doconv/readme/README.html

Function to_miniature create an image with your slides. (you will need LibreOffice).

pptx_file <- system.file(package = "doconv", "doc-examples/example.pptx")
to_miniature(pptx_file, width = 1000)

David Gohel
  • 9,180
  • 2
  • 16
  • 34