File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,9 @@ Here are the options that can be stored in this file:
106106 // Add toc at the end of the file
107107 " toc" : true ,
108108
109+ // Add page numbers to the bottom of every page
110+ " pageNumbers" : false ,
111+
109112 // Font size for the fiel content
110113 " fontSize" : 12 ,
111114
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ Generator.prototype.finish = function() {
4444 var pdfOptions = _ . defaults ( that . options . pdf || { } , {
4545 "fontSize" : 12 ,
4646 "toc" : true ,
47+ "pageNumbers" : false ,
4748 "paperSize" : "a4" ,
4849 "margin" : {
4950 "right" : 62 ,
@@ -61,6 +62,7 @@ Generator.prototype.finish = function() {
6162 "--pdf-add-toc" : Boolean ( pdfOptions . toc ) ,
6263 "--pdf-default-font-size" : String ( pdfOptions . fontSize ) ,
6364 "--paper-size" : String ( pdfOptions . paperSize ) ,
65+ "--pdf-page-numbers" : Boolean ( pdfOptions . pageNumbers )
6466 } ) ;
6567 }
6668
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function escapeShellArg(arg) {
1111function optionsToShellArgs ( options ) {
1212 return _ . chain ( options )
1313 . map ( function ( value , key ) {
14- if ( value == null ) return null ;
14+ if ( value == null || value == false ) return null ;
1515 if ( value == true ) return key ;
1616 return key + "=" + escapeShellArg ( value ) ;
1717 } )
You can’t perform that action at this time.
0 commit comments