python-pptx
anytree
pip install -r requirements.txt
git clone https://github.com/c0fec0de/anytree
cd anytree
sudo python setup.py install
➜ PPT-Generator git:(master) python generator.py
Usage:
python generator.py [INPUT] [OUTPUT]
Example:
python generator.py input.txt output.pptx
➜ PPT-Generator git:(master) cat input.txt
Slide 1
Slide 1.1
Slide 1.2
Slide 1.3
Slide 1.4
Slide 2
Slide 2.1
Slide 2.1.1
Slide 2.1.2
Slide 2.2
Slide 2.2.1
Slide 2.2.2
Slide 2.2.3
Slide 2.2.4
Slide 2.2.5
Slide 2.2.5.1
Slide n
➜ PPT-Generator git:(master) python generator.py input.txt output.pptx
root
├── Slide 1
│ ├── Slide 1.1
│ ├── Slide 1.2
│ ├── Slide 1.3
│ └── Slide 1.4
├── Slide 2
│ ├── Slide 2.1
│ │ ├── Slide 2.1.1
│ │ └── Slide 2.1.2
│ └── Slide 2.2
│ ├── Slide 2.2.1
│ ├── Slide 2.2.2
│ ├── Slide 2.2.3
│ ├── Slide 2.2.4
│ └── Slide 2.2.5
│ └── Slide 2.2.5.1
└── Slide n
Thanks for the great support of these repos: