DeckTape is a high-quality PDF exporter for HTML5 presentation frameworks.
It can be used to generate PDF for many presentation frameworks, such as reveal.js.
Here describes how to install it via “npm” and use it locally.
# 1. Get into the directory.cd reveal.js
# 2. Install decktape npm pacakge.npm install decktape
# 3. Open another terminal and run the following command to start HTTP server:python -m http.server
# 4. Run decktype.node_modules/decktape/decktape.js automatic http://localhost:8000/deck.html deck.pdf
# 5. Run the following for more options.node_modules/decktape/decktape.js -h
For the Docker way to run, please read official document here.