0.0.1 • Published 11 months ago

beamer-to-pptx v0.0.1

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
11 months ago

beamer-to-pptx

Command line tool to convert Beamer-generated PDFs to Powerpoint files, using SVGs for lossless conversion and including speaker notes.

Requirements:

  • Poppler PDF tools, with pdftocairo and pdftotext available in your PATH.
  • Node/Javascript runtime and npm (or similar) to install the Javscript dependencies.

Setup:

  1. Make sure you Poppler working.
  2. Go into this directory and run npm install -g . to install beamer-to-pptx as a command line tool.
  3. Run beamer-to-pptx in your shell to output the usage instructions:
  _                                         _                          _                   
 | |__   ___  __ _ _ __ ___   ___ _ __     | |_ ___        _ __  _ __ | |___  __           
 | '_ \ / _ \/ _` | '_ ` _ \ / _ \ '__|____| __/ _ \ _____| '_ \| '_ \| __\ \/ /  
 | |_) |  __/ (_| | | | | | |  __/ | |_____| || (_) |_____| |_) | |_) | |_ >  <            
 |_.__/ \___|\__,_|_| |_| |_|\___|_|        \__\___/      | .__/| .__/ \__/_/\_\   
                                                          |_|   |_|                        
 
 Convert Beamer slides to Powerpoint presentations losslessly*, including your 
 speaker notes! 
 
 Usage: 
   1. Compile your Beamer slides with: 
      \setbeameroption{show notes on second screen=right} 
      \setbeamertemplate{note page}[plain] 
   2. Convert the PDF into a Powerpoint presentation: 
      beamer-to-pptx <presentation.pdf> 
 
 This utility uses poppler's pdftocairo to render each slide to an SVG (with 
 fonts converted to glyphs to avoid breakage). It then runs pdftotext to get 
 the textual content of the speaker notes. These are combined into a Powerpoint 
 presentation with each slide consisting of a fullscreen SVG and speaker notes. 
 
 The resulting Powerpoint presentation is saved as <presentation>.pptx with 
 <presentation> taken from the input file name <presentation.pdf>. The output is 
 intended to be read-only (so you can use speaker prompts at venues that only 
 support Powerpoint). They aren't editable in any meaningful way. 
 
 Note that your presentation must be in 4x3, 16x10 or 16x9 aspect ratio due to 
 some bugs I haven't been able to fix. 
 
 * If `pdftocairo -svg` is lossless for your PDF, then this tool should be as 
   well. The `pdftotext` transformation of speaker notes is likely to be lossy. 
0.0.1

11 months ago