Skip to content

Instantly share code, notes, and snippets.

@samaxes
samaxes / slides2png.groovy
Created June 26, 2012 20:09 — forked from mojavelinux/slides2png.groovy
Export a dzslides presentation to PNGs, then combine into a PDF using geb [Windows]
/**
* slides2png is a Groovy script that plays a dzslides presentation using
* WebDriver, captures each slide to a PNG and generates a shell script to
* collate the PNGs together into a PDF using convert (from ImageMagick).
*
* The URL of the presentation is passed as the sole argument to the script.
* If the presentation is local, specify the absolute path prefixed with the
* file:// protocol.
*
* slides2png relies on IMAGE_MAGICK_HOME environment variable pointing to