This is an English translation of a Japanese blog. Some content may not be fully translated.
Python

Converting PowerPoint (pptx) Files to PDF with Python

Procedure

Performed on Windows.

  1. Install required libraries

    pip install comtypes
    
  2. git clone

    git clone https://github.com/matthewrenze/powerpoint-to-pdf.git
    
  3. Place the pptx file you want to convert to PDF under the powerpoint-to-pdf folder

  4. Run Python

    python ConvertHere.py
    

Notes

  • Specify file: Convert.py
  • Specify folder: ConvertAll.py
  • All files in current directory: ConvertHere.py (the script used this time)

Reference

from https://github.com/matthewrenze/powerpoint-to-pdf

Suggest an edit on GitHub