Created
October 1, 2014 20:42
-
-
Save brian-gates/ecba11f09a6a15f49ae3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var WebPage = require('webpage'); | |
page = WebPage.create(); | |
var url = 'http://localhost:8000/reports/acquisition/1411801200000'; | |
page.open(url); | |
page.onLoadFinished = function() { | |
page.render('screenshot.pdf'); | |
phantom.exit(); | |
}; | |
page.onConsoleMessage = function(msg, lineNum, sourceId) { | |
console.log(msg); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment