Save As HTML in Powerpoint 2011 for Mac

Follow-up to Extracting Images from Powerpoint Presentations for (e.g.) LaTeX presentations from the NISOx blog (formerly Neuroimaging Statistics Tips & Tools)

[NOTE: Powerpoint can now do this directly via “Export as…”, and then selecting HTML. Leaving this entry just for reference. -TN 2017/04/27]

Arrrgh. In Powerpoint 2011 for Mac there is no “HTML” option in the “Save as…” dialog.

Fortunately, there is a Microsoft Support note that gives a work around. For convenience (& my memory) here it is distilled:

  1. Press ALT+F11. (Depending on your keyboard settings, you might have to hold down “fn” to get F11.) This will open a “Project” window.
  2. Press CMD+CTRL+G to open the “Immediate” window. (The support page leaves out CMD, the ‘Apple’ key.)
  3. In the “Immediate” window paste in the following:
    ActivePresentation.SaveAs "/tmp/name.htm", ppSaveAsHTML, msoFalse
    Press ENTER.

This will give you a name.htm file and a name_files directory. Of course, you can replace ”/tmp/myfile.htm” with the desired path and filename. However, I find it saves keystrokes to save it into /tmp, and then move the file to wherever you really want it.

While you’ll see the images in the *_files/ folder, disappointingly, I don’t find the same original source images like I have seen before. Again, Arrrgh.

-Tom

Extracting Images from Powerpoint Presentations for (e.g.) LaTeX presentations

Have you ever needed to create a LaTeX presentation but needed figures that only lived in a PowerPoint file? Or have you found that the only copy of a crucial figure you need lives inside a PowerPoint presentation, and when you copy it out of PowerPoint into another application it looks horrific?

This is a cool trick to extract the original (or close to original) image file from the presentation.

Open the presentation, delete all the slides you don’t need. The option is different with different versions of Powerpoint; look for “File -> Export as…” or ” “File -> Save as Web Page…”. You will get a .html (or .htm) file, and a _files directory. Inside the _files directory you will find a bunch of image files. It might take some poking around if there are lots of images on the slide, but you should find a close to original version of the image pasted into the slide.