diff options
Diffstat (limited to 'lib/configuration.js')
-rw-r--r-- | lib/configuration.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/configuration.js b/lib/configuration.js index 3b6b47b..563fcef 100644 --- a/lib/configuration.js +++ b/lib/configuration.js @@ -1,5 +1,6 @@ var _ = require('lodash'); var Q = require('q'); +var fs = require('fs'); var path = require('path'); var semver = require('semver'); @@ -276,6 +277,7 @@ Configuration.DEFAULT = { // Margin (in pts) // Note: 72 pts equals 1 inch +<<<<<<< HEAD 'margin': { 'right': 62, 'left': 62, @@ -288,6 +290,20 @@ Configuration.DEFAULT = { // Footer HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_. 'footerTemplate': '' +======= + "margin": { + "right": 62, + "left": 62, + "top": 62, + "bottom": 62 + }, + + //Header HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_. + "headerTemplate": fs.readFileSync(path.resolve(__dirname, '../theme/templates/ebook/header.html'), { encoding: 'utf-8' }), + + //Footer HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_. + "footerTemplate": fs.readFileSync(path.resolve(__dirname, '../theme/templates/ebook/footer.html'), { encoding: 'utf-8' }) +>>>>>>> Add css to footer/header for pdf } }; |