Powerpoint to .h5p course presentation converter. Windows (+ MS Office) only.
- Download the executable of this tool
- As user @dgcruzing described it in issue #1:
- Create a shortcut on your desktop to it. i.e right click on "ppt2h5p" -> sendto -> Desktop
- Open your explorer, type shell:sendto into the addressbar
- hit enter, this should take you to your
users/yourusername/Appdata/roaming/Microsoft/windows/Sendtofolder - drag the shortcut here you have created
- Right-click on your .pptx file, send to "ppt2h5p". Let the magic happen.
- Upload .h5p into your H5P repository
pptx2h5p makes use of the COM interface offered by an installed powerpoint on the host.
- opens the .pptx file in powerpoint
- exports each slide as .png file
- analyses images for width/height to adjust scaling for h5p
- imports the .png files into an .hp5 archive (it's a zip essentially)
pptx2h5p is expected to compile under linux. All necessary build environments come packaged as docker containers. There is no local python environment required. But as its target platform is windows, a wine container is used to run pyinstaller and find appropriate python library versions running under windows. Everything is pretty much streamlined with a few shell scripts (basically compile_requirements.sh and build.sh, you can use a shortcut wrapper update_compile_build.sh if you wish).
Building everything under Windows directly is a valid option but requires a complete remake of the toolchain, which I don't see the point of at this point. If you're stuck with windows as an operating system, install WSL2 (windows subsystem for linux) into the system. I recommend using Visual Studio Code as it has good integration of WSL, docker, git and a terminal, all you need.
Any doubts, just reach out to me.