PejmanNik/puppeteer-report

Print background css

Closed this issue · 2 comments

Is there a way to pass through options to the browser's PDF render? In particular, it seems that printBackground needs to be set to true in order to correctly render some parts of my layout. How can I ensure that is done?

Please check the readme. the pdfPage and pdf accept the original puppeteer PDF options. you can pass the printBackground in both functions.

https://github.com/PejmanNik/puppeteer-report#pdf

Thanks.