https://github.com/luispedro/mk_screenshot_pptx
https://github.com/luispedro/mk_screenshot_pptx
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/luispedro/mk_screenshot_pptx
- Owner: luispedro
- License: mit
- Created: 2024-07-02T02:13:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-08T04:28:30.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T06:43:28.568Z (over 1 year ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING.MIT
Awesome Lists containing this project
README
# Make PPTX from anything
This is an abomination, but it works. It actually works very well.
It will take a presentation and screenshot every slide and put it into a PowerPoint presentation, which will literally consist of a single large PNG image per slide.
It is completely agnostic as to what tool you used to originally create the presentation. You can even use it to create a screenshot PowerPoint out of another PowerPoint and avoid any cross-platform issues.
**Limitations**: no video.
## Installation
```bash
conda install python-pptx
conda install mahotas imread
```
You also need to have `scrot` and `xdotool` installed.
It's a Python script that uses the `python-pptx` library to create a PowerPoint presentation and insert the contents of the file into the slides. It will repeatedly press the `J` key to move to the next slide (you can adjust this in the script).
## Usage
```bash
python screenshot_pptx.py
```
You can change some options, namely the _delay_ (how many seconds to wait before changing slides) and the _output file name_ (should be self-explanatory).
```
usage: python screenshot_pptx.py [-h] [--delay SLIDE_DELAY] [-o OUTPUT_NAME]
Create PPTX from any presentation (by screenshotting)
options:
-h, --help show this help message and exit
--delay SLIDE_DELAY
-o OUTPUT_NAME, --output OUTPUT_NAME
```
## Author
- [Luis Pedro Coelho](https://luispedro.org)
- License: MIT