Skip to content

Instantly share code, notes, and snippets.

@wmakeev
Created July 5, 2014 14:01
Show Gist options
  • Save wmakeev/bb6f5f9b76320097eec6 to your computer and use it in GitHub Desktop.
Save wmakeev/bb6f5f9b76320097eec6 to your computer and use it in GitHub Desktop.
Here is an example of rendering a pdf
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