Skip to content

LeonM789/Powerpoint-Creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Markdownify
PowerPoint Creator

Automated PowerPoint creator for the HM.


📝 Introduction

For the graduation ceremony of the Munich University of Applied Sciences, a PowerPoint presentation has to be created every year, in which each graduate gets a slide. In order not to have to laboriously create this presentation by hand, this repository contains Python code that creates it almost completely automatically.


(For the chosen one, who now has the honor of creating this presentation for the graduation ceremony: you will find the more extensive powerpoint template in the FS cloud)


🛠️ Requirements

This repository contains a Jupyter notebook and the notebook combined into a Python file, which require the following packages:

  • os (build in)
  • requests
  • urllib3
  • bs4
  • python-pptx
You can easily install them via pip or use the `environment.yml` to build a matching environment with all the packages and dependencies.

If you use conda you can run the following command in your terminal:

conda env create -f environment.yml

After building the environment you can activate it with:

conda activate pp_creator

and you are good to go.


💡 Usage

Note that this code is designed exactly for the template provided and changes must always be made in the PowerPoint slide master AND in the code to avoid errors.

  1. Make sure you have a link and access to a file server where all the files (txt and jpg) are linked
  2. Download the template and the notebook or the Python file
  3. Install all required packages by running the first cell or by using the terminal
  4. Give the variable url the link to the file register
  5. Adjust the code or your data and the powerpoint template to your needs
    5.5. Run the Python file by using the terminal (cd your/folder/path , pyhton3 pp_creator.py)
    OR
    5.5. Run the "download cell" in the notebook to download all the data to the folder where the notebook is located
    5.6Run the "create cell" to create the powerpoint
  6. Adjust the images in the powerpoint that are not well fitted
  7. Add your own slides that you need

🗂️ Example Data

The txt files for which my code is written are build like this:

Nachname: *first name*     Vorname: *last name*    Highlight: *bla bla bla* Hobbies: *bla bla bla*     Studiengang: *major* 

... and are named like this (!important):

GatesBill.txt
GatesBill.jpg

The code and the template covers the following situations:

  1. There is only a txt for the student and the only information in it are the first name and the last name
  2. There is also a picture of the student
  3. In addition to 2., the student provides information about his/her highlights and/or hobbies
  4. In addition to his name, the student only provides his highlights/hobbies (no picture)

⚖️ License

This project is licensed under the MIT License - see the LICENSE file for details.



leonmarx.de  ·  GitHub @LeonM789

About

Automated PowerPoint creator from txt files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published