PDF2PPT Generator is a Python tool that converts PDF files to PowerPoint presentations. For each page of the PDF, it uses Spacy's sentence rank algorithm to summarize the page and generates bullet points and a topic name using the GPT-3.5-turbo model. It then extracts related images using the Google Image Search API and creates slides in the PowerPoint presentation. The resulting PowerPoint presentation contains two slides for each page of the PDF: one containing the topic name and bullet points, and the other containing a related image.
To use PDF2PPT Generator, you will need the following:
Clone the repository:
Install the required dependencies:
Set up your Google Cloud project and obtain your API credentials for the Google Image Search API and the Google Cloud Vision API. Add your credentials to the .env file. Similarly obtain a OpenAI API Secret Key and append in .env file.
Run the GUI by executing the following command:
python gui.pyLaunch the GUI by running the gui.py script.
Select the PDF file that you want to convert to a PowerPoint presentation by pressing the button.
Wait for the process to complete till you get a Job Completed Alert.
Choose the file location where you want to save the generated file and provide a filename.
PDF2PPT Generator is licensed under the MIT License. See the LICENSE file for more information.
PDF2PPT Generator was created by Parth Gupta, Abhijeet Shankar and Sounak Chakraborty. It uses Spacy, GPT-3.5-turbo, Google Cloud SDK, Google Image Search API, PPTX API, Tkinter, PyPDF2 Library and Python Imaging Library (PIL).
For the free OpenAI key, the program is limited to the first 3 pages, however changing the same is possible by modifying the pdf2final_list.py file.