Skip to content

HaoweiLi97/ppt2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ppt2pdf

ppt2pdf is a command-line tool for macOS that converts PowerPoint presentations (.ppt and .pptx) to PDF.


Features

  • Convert a single PowerPoint file to PDF.
  • Convert all PowerPoint files in a folder.
  • Keeps the original filename for the PDF.

Requirements

  • macOS
  • Python 3
  • Microsoft PowerPoint

Installation

  1. Clone the repository:
git clone https://github.com/HaoweiLi97/ppt2pdf.git
cd ppt2pdf
  1. Make the script executable:
chmod +x ppt2pdf
  1. Move it to your PATH to run it anywhere:
sudo mv ppt2pdf /usr/local/bin/

Usage

Convert a single PowerPoint file:

ppt2pdf /path/to/file/my_presentation.pptx

Convert all PowerPoint files in a folder:

ppt2pdf /path/to/folder

Convert files in the current folder:

ppt2pdf

Example

ppt2pdf ~/Desktop/presentations

This will convert all .ppt and .pptx files in ~/Desktop/presentations to PDFs in the same folder.


Notes

  • 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 osascript for AppleScript execution.

License

MIT License – feel free to use, modify, and share.

About

ppt2pdf is a easy-to-use command-line tool for macOS that converts PowerPoint presentations (.ppt and .pptx) to PDF.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages