Skip to content

Instantly share code, notes, and snippets.

@slickplaid
Created March 22, 2012 15:41
Show Gist options
  • Save slickplaid/2159094 to your computer and use it in GitHub Desktop.
Save slickplaid/2159094 to your computer and use it in GitHub Desktop.
var html = ejs.render('scenario/show');
var child = exec('./wkhtmltopdf/wkhtmltopdf-amd64 - -', function(code, stdout, stderr) {
console.log('Output: '+stderr);
res.send(stdout);
});
child.stdin.write(html);
child.stdin.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment