All of these instructions were written for Windows, using git bash as the terminal. I'm running Python 3.12.6
- Clone the repository, set as working directory in terminal
- Set up and activate a python virtual environment
python -m venv .venv
. .venv/Scripts/activate
- Install dependencies:
pip install -r requirements.txt
- Modify
port
argument in main.py, if necessary - Run the conversion server:
python main.py
The server accepts POST requests containing ppt and pptx files at the /pptx-to-pdf
endpoint.
The server also accepts a POST request containing the pptx file at the /extract-pptx-text
endpoint.
For example usage, see test.py