You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
353 B

var webpage = require('webpage'),
page = webpage.create(),
fs = require('fs');
page.open('temp-output.html', function(status) {
page.viewportSize = {
width: 960,
height: 522
};
page.paperSize = {
width: 960,
height: 522
};
page.render('output.pdf');
fs.removeTree('temp-slides');
fs.remove('temp-output.html');
phantom.exit();
});