diff --git a/lib/Page.js b/lib/Page.js index b410d629..33cdae33 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -486,9 +486,9 @@ class Page extends EventEmitter { options = options || {}; let scale = options.scale || 1; - let displayHeaderFooter = options.displayHeaderFooter || false; - let printBackground = options.printBackground || true; - let landscape = options.landscape || false; + let displayHeaderFooter = !!options.displayHeaderFooter; + let printBackground = !!options.printBackground; + let landscape = !!options.landscape; let pageRanges = options.pageRanges || ''; let paperWidth = 8.5;