ppt2pdf is a command-line tool for macOS that converts PowerPoint presentations (.ppt and .pptx) to PDF.
- Convert a single PowerPoint file to PDF.
- Convert all PowerPoint files in a folder.
- Keeps the original filename for the PDF.
- macOS
- Python 3
- Microsoft PowerPoint
- Clone the repository:
git clone https://github.com/HaoweiLi97/ppt2pdf.git
cd ppt2pdf- Make the script executable:
chmod +x ppt2pdf- Move it to your PATH to run it anywhere:
sudo mv ppt2pdf /usr/local/bin/ppt2pdf /path/to/file/my_presentation.pptxppt2pdf /path/to/folderppt2pdfppt2pdf ~/Desktop/presentationsThis will convert all .ppt and .pptx files in ~/Desktop/presentations to PDFs in the same folder.
- Existing PDF files with the same name will be overwritten.
- The script relies on Microsoft PowerPoint. Make sure it is installed and licensed.
- No extra Python packages required; uses macOS’s built-in
osascriptfor AppleScript execution.
MIT License – feel free to use, modify, and share.