Skip to content
MM-LehmannPublic

About

Powerpoint to .h5p course presentation converter. Windows (+ MS Office) only.

Resources

Code of conduct

Stars

40 stars

Watchers

3 watching

Forks

Repository files navigation

pptx2h5p

Powerpoint to .h5p course presentation converter. Windows (+ MS Office) only.

Instructions

  1. Download the executable of this tool
  2. 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/Sendto folder
    • 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

How it works

pptx2h5p makes use of the COM interface offered by an installed powerpoint on the host.

  1. opens the .pptx file in powerpoint
  2. exports each slide as .png file
  3. analyses images for width/height to adjust scaling for h5p
  4. imports the .png files into an .hp5 archive (it's a zip essentially)

Developer guide

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.

About

Powerpoint to .h5p course presentation converter. Windows (+ MS Office) only.

Resources

Code of conduct

Stars

40 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages