diff options
Diffstat (limited to 'lib/generate')
-rw-r--r-- | lib/generate/config.js | 8 | ||||
-rw-r--r-- | lib/generate/ebook/index.js | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/generate/config.js b/lib/generate/config.js index 0b270a3..76b0d79 100644 --- a/lib/generate/config.js +++ b/lib/generate/config.js @@ -83,7 +83,13 @@ var CONFIG = { "left": 62, "top": 36, "bottom": 36 - } + }, + + //Header HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_. + "headerTemplate": null, + + //Footer HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_. + "footerTemplate": null } }; diff --git a/lib/generate/ebook/index.js b/lib/generate/ebook/index.js index b7a4119..d3b2aea 100644 --- a/lib/generate/ebook/index.js +++ b/lib/generate/ebook/index.js @@ -58,6 +58,8 @@ Generator.prototype.finish = function() { "--pdf-mono-font-size": String(pdfOptions.fontSize), "--paper-size": String(pdfOptions.paperSize), "--pdf-page-numbers": Boolean(pdfOptions.pageNumbers), + "--pdf-header-template": String(pdfOptions.headerTemplate), + "--pdf-footer-template": String(pdfOptions.footerTemplate) }); } |