This project provides a small utility that converts a Freeplane HTML export containing an image map into a PPTX presentation. Every clickable area in the HTML is recreated as a transparent rectangle that points to the associated link.
pip install .The command above installs the beautifulsoup4 and python-pptx
dependencies required by the script.
click2pptx [-i SOURCE.html] [-o DESTINATION.pptx]
-i,--input: source HTML file. If omitted, the script will pick the first*.htmlfile found in the current directory.-o,--output: path of the PPTX file to create. If omitted, anoutputfolder is created (if it does not already exist) and the filemind_map_clickable_YYYYMMDD_HHMMSS.pptxis written there.
Example:
click2pptx -i my_export.html -o presentation.pptxThe program reads the HTML file, extracts the clickable areas and the image used, then generates an equivalent PPTX. Each active region of the image is covered by an invisible rectangle with the hyperlink defined in the Freeplane export.
Install the development dependencies:
pip install -e ".[dev]"Initialize the pre-commit hooks:
pre-commit installRun the tests with coverage enabled:
pytest --cov=click2pptxYou can build a standalone executable using PyInstaller and the
provided click2pptx.spec file:
pip install pyinstaller
pyinstaller click2pptx.specThe resulting binary will be available in the dist folder.