The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Converting Power Point

Posted by jpluimers on 2025/01/15

I have a lot of old Power Point slide decks that I want to reuse in current presentations. By now however, I learned prepare all my presentation stuff in either Markdown or reStructuredText: far easier to publish and put under version control.

After searching, I could only find one tool that is still maintained doing a decent job doing a PowerPoint to Markdown conversion: [Wayback/Archive] GitHub – ssine/pptx2md: a pptx to markdown converter. The tools which works great, in big part of PowerPoint content being highly structured with styles like title, subtitle and various heading levels and content types.

The thing it does not document is the prerequisites, which are these:

Future enhancements

I do need to look at some of the forks at [Wayback/Archive] Forks · ssine/pptx2md · GitHub so see if they cover a bit I am missing: converting text in PowerPoint having a fixed-pitch font into markdown ` (back-tick) code marked bits (similar to now now bold, italic, and hyperlinks are supported). If it is not there, I might add it in the future.

Related code portions to search for are handling of is_accent and is_strong in [Wayback/Archive] pptx2md/pptx2md/parser.py at master · ssine/pptx2md · GitHub and get_accent and get_strong in [Wayback/Archive] pptx2md/pptx2md/outputter.py at master · ssine/pptx2md · GitHub.

Queries

Actually the last two queries query was what I started with. They resulted in a few interesting sites for other PowerPoint conversions:

Final words

Note if you are into Ruby, there is also [Wayback/Archive] GitHub – clerk67/ppt2rst: Convert PowerPoint .ppt(x) files to reStructuredText .rst files, which has very few features and has not been maintained in almost 7 years.

Its main source is in [Wayback/Archive] ppt2rst/ppt2rst.rb at master · clerk67/ppt2rst · GitHub.

Anyway, it allowed me to convert the pptx source of 20121026-Hidden-Gems-of-Delphi-Language-Operator-Overloading-and-Class-Record-helpers.pdf to markdown and work from there. It did not matter much which conversion I used:

  • ./.venv/bin/pptx2md --enable-slides 20121026-Hidden-Gems-of-Delphi-Language-Operator-Overloading-and-Class-Record-helpers.pptx -o 20121026-Hidden-Gems-of-Delphi-Language-Operator-Overloading-and-Class-Record-helpers.slides.md

  • ./.venv/bin/pptx2md 20121026-Hidden-Gems-of-Delphi-Language-Operator-Overloading-and-Class-Record-helpers.pptx -o 20121026-Hidden-Gems-of-Delphi-Language-Operator-Overloading-and-Class-Record-helpers.md

The first html try was at [Wayback/Archive] Download your file — Convertio which resulted in a fat HTML file which loaded slowly and was hard to copy/paste content from.

That made me search for markdown or reStructuredText solutions, of which pptx2md worked better than hoped for.

Interesting forks:

--jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.