Convert your (Beamer) PDF slides to (Powerpoint) PPTX
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
template The initial commit. Jan 28, 2016
LICENSE Initial commit Jan 28, 2016 Added a link to the issue and its fix on OSX. Feb 15, 2018 use sRGB colorspace by default Oct 2, 2017
test.pdf renamed. Jan 28, 2016


Convert your (Beamer) PDF slides to (Powerpoint) PPTX

So you don't like using Powerpoint and would rather use Latex/Beamer to make your slides, however, you have a fancy Surface and you want to use the pen during the presentation? Here is my solution.

This script gets a PDF file as input and generates a Powerpoint PPTX file while preserving the format of the original PDF. Theoretically all PDF files, regardless of the original generator, can be converted to PPTX slides with this (not tested though).

Simply explained, I convert all the slides to high-quality image files first, and then push them into a Powerpoint project as a slide.

How to run

  • Copy your pdf file next to the script first.
  • Execute ./ test.pdf to generate a test.pdf.pptx file (replace test.pdf with your filename).
  • By default the output powerpoint project is in the widescreen mode. If your slides are not for widescreen you can alternatively run ./ test.pdf notwide to generate a 4:3 standard PPTX project.


If you're using Linux you probably already have all the above.

If you're using OSX you need to install ImageMagick and make sure convert is accessible from your Terminal. You may also want to take a look here regarding an issue that shows up on OSX and its fix.

If you're using Windows you can use Cygwin, but if you don't have it already, it is not recommended! An alternative solution for Windows users is to access a linux box (such as your university servers) to take care of the task.


Thanks to Melissa O'Neill for providing a Pdf2Keynote tool for mac which has motivated this small project!