Teach page.pdf to respect printBackground argument (#307)

References #301
This commit is contained in:
Andrey Lushnikov 2017-08-16 15:08:31 -07:00 committed by GitHub
parent a93377fc22
commit 7cef3d7ce7

View File

@ -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;