diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-05 20:21:51 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-05 20:22:27 -0700 |
commit | 9ffec175a5cd5cd4e4e310ea14d6c28cb576bfc7 (patch) | |
tree | 36ca31f21239875db7c883bde2702effc1fec1e2 /lib/generate/pdf | |
parent | 465188cae68d86017ce293e018eddf85f4de83ba (diff) | |
download | gitbook-9ffec175a5cd5cd4e4e310ea14d6c28cb576bfc7.zip gitbook-9ffec175a5cd5cd4e4e310ea14d6c28cb576bfc7.tar.gz gitbook-9ffec175a5cd5cd4e4e310ea14d6c28cb576bfc7.tar.bz2 |
Add command gitbook pdf to generate PDF
Diffstat (limited to 'lib/generate/pdf')
-rw-r--r-- | lib/generate/pdf/Index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/generate/pdf/Index.js b/lib/generate/pdf/Index.js index 680bda3..e331633 100644 --- a/lib/generate/pdf/Index.js +++ b/lib/generate/pdf/Index.js @@ -17,7 +17,7 @@ var Generator = function() { // Options for PDF generation this.options = _.defaults(this.options, { - format: "A4" + paperformat: "A4" }); }; util.inherits(Generator, BaseGenerator); @@ -34,7 +34,7 @@ Generator.prototype.finish = function() { "generate", path.join(that.options.output, "index.html"), path.join(that.options.output, "index.pdf"), - "--format="+that.options.format + "--format="+that.options.paperformat ].join(" "); exec(command, function (error, stdout, stderr) { |