Skip to content

Instantly share code, notes, and snippets.

@jlant
Last active November 1, 2016 03:34
Show Gist options
  • Save jlant/3a1433c7dba899b4b2a3 to your computer and use it in GitHub Desktop.
Save jlant/3a1433c7dba899b4b2a3 to your computer and use it in GitHub Desktop.
List - list of information on using reveal.js presentation framework

Reveal.js

Website - http://lab.hakim.se/reveal-js/#/
GitHub - https://github.com/hakimel/reveal.js/

Create pdf

Add ?print-pdf# to the url

file:///C:/Users/jlant/jeremiah/me/presentations/2015-08-19-osw-flood-mapping/index.html?print-pdf#/

or

use decktape (https://github.com/astefanutti/decktape) - a PDF exporter for HTML presentation frameworks

$ cd <into your presentation>
$ python -m http.server
$ cd <to decktape directory>
$ ./bin/phantomjs decktape.js reveal http://localhost:8000/\#/ mypresentation.pdf

or

$ ./phantomjs.exe decktape.js reveal file:///C:/Users/jlant/jeremiah/me/presentations/2016-08-24-flood-inundation-hazard-ky-kamm/index.html 2016-08-24-flood-inundation-hazard-ky-kamm.pdf

Reference

https://github.com/hakimel/reveal.js#pdf-export

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment