Skip to content

Instantly share code, notes, and snippets.

@beckyconning
Created April 17, 2013 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beckyconning/5404506 to your computer and use it in GitHub Desktop.
Save beckyconning/5404506 to your computer and use it in GitHub Desktop.
var page = new WebPage();
var system = require("system");
page.paperSize = {
width: '29.7cm',
height: '21cm',
margin: {left:"0cm", right:"0cm", top:"0cm", bottom:"0cm"},
};
page.zoomFactor = 1.5;
page.open(system.args[1], function(status)
{
setTimeout(function() {
page.render(system.args[2]);
phantom.exit();
}, 30000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment