Force type of header and footer templates

This commit is contained in:
Samy Pessé
2014-10-13 10:48:02 +02:00
3 changed files with 16 additions and 2 deletions
+7 -1
View File
@@ -118,7 +118,13 @@ Here are the options that can be stored in this file:
"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
}
}
```
+7 -1
View File
@@ -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
}
};
+2
View File
@@ -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)
});
}