mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Teach page.pdf to respect printBackground argument (#307)
References #301
This commit is contained in:
parent
a93377fc22
commit
7cef3d7ce7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user