File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,13 @@ Here are the options that can be stored in this file:
118118 " left" : 62 ,
119119 " top" : 36 ,
120120 " bottom" : 36
121- }
121+ },
122+
123+ // Header HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_.
124+ " headerTemplate" : null ,
125+
126+ // Footer HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_.
127+ " footerTemplate" : null
122128 }
123129}
124130```
Original file line number Diff line number Diff line change @@ -83,7 +83,13 @@ var CONFIG = {
8383 "left" : 62 ,
8484 "top" : 36 ,
8585 "bottom" : 36
86- }
86+ } ,
87+
88+ //Header HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_.
89+ "headerTemplate" : null ,
90+
91+ //Footer HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_.
92+ "footerTemplate" : null
8793 }
8894} ;
8995
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ Generator.prototype.finish = function() {
5858 "--pdf-mono-font-size" : String ( pdfOptions . fontSize ) ,
5959 "--paper-size" : String ( pdfOptions . paperSize ) ,
6060 "--pdf-page-numbers" : Boolean ( pdfOptions . pageNumbers ) ,
61+ "--pdf-header-template" : String ( pdfOptions . headerTemplate ) ,
62+ "--pdf-footer-template" : String ( pdfOptions . footerTemplate )
6163 } ) ;
6264 }
6365
You can’t perform that action at this time.
0 commit comments