Gangmax Blog

自由之思想,独立之精神

DeckTape

| Comments

From here.

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
2
3
4
5
6
7
8
9
10
# 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.

Comments