Add command gitbook pdf to generate PDF

This commit is contained in:
Samy Pessé
2014-04-05 20:21:51 -07:00
parent 465188cae6
commit 9ffec175a5
5 changed files with 64 additions and 116 deletions
+2 -2
View File
@@ -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) {