Given a URL to a reveal.js slide deck capture each slide as an image
The purpose of this is to make it easy to capture each slide from a reveal.js presentation as an image in an automated way. These images can then be used in any presenatation write-up.
Or you can take the images and create a PDF from the output. Here's an example created by Robin Hawkes:
Note: Robin had to use a custom version of PhantomJS to support Web Fonts
You can install globally using:
npm install -g revealjs-capture
This adds the revealjs-capture
executable to your PATH
.
You can then capture an image for each slide in your reveal.js presentation using:
revealjs-capture -s <slides_url>
Example:
revealjs-capture -s http://leggetter.github.io/talks/realtime-tech-stack
-o, --output
flag to allow the output location of the rendered slide captutes to be configuredrevealjs-capture <url> --indices [ [5,5], [10.1] ]
(or something similar)