Skip to content

Instantly share code, notes, and snippets.

@tongpu
tongpu / phantomjs-revealjs-slide-capture.js
Last active November 17, 2016 15:56 — forked from soxofaan/phantomjs-revealjs-slide-capture.js
PhantomJS script to capture/render screenshots of the slides of a Reveal.js powered slideshow.
/**
* PhantomJS script to capture/render screenshots of the slides of a Reveal.js powered slideshow.
*/
var page = require('webpage').create();
var args = require('system').args;
// Get url to render from command line.
var url;
if (args.length < 2) {