Created
July 5, 2014 14:01
-
-
Save wmakeev/bb6f5f9b76320097eec6 to your computer and use it in GitHub Desktop.
Here is an example of rendering a pdf
This file contains hidden or 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
phantom = require('phantom') | |
phantom.create(function(ph) { | |
ph.createPage(function(page) { | |
page.open("http://www.google.com", function(status) { | |
page.render('google.pdf', function(){ | |
console.log('Page Rendered'); | |
ph.exit(); | |
}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment