Created
August 29, 2017 11:00
-
-
Save zoeabryant/edb91626ecc07865c49974dfee7f3615 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
console.log('Let\'s go!'); | |
var page = require('webpage').create(); | |
page.open('http://google.com', function(status) { | |
console.log("Status: " + status); | |
if(status === "success") { | |
page.render(page.title + '.pdf'); | |
} | |
phantom.exit(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment