From 28c7f6fbf3f6f469316bdf5629922bfc9d6e978b Mon Sep 17 00:00:00 2001 From: TJ Krusinski Date: Sun, 28 Sep 2014 08:29:29 -0400 Subject: [PATCH] closes #20 --- render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render.js b/render.js index 05fac4d..c9fb46f 100644 --- a/render.js +++ b/render.js @@ -37,7 +37,7 @@ if (phantom.args.length < 2) { console.log('unable to load the address!'); } else { window.setTimeout(function(){ - page.render(phantom.args[1]); + page.render(phantom.args[1], { format: 'pdf' }); console.log('success'); phantom.exit(); }, options.captureDelay || 400);