mrafiqk/html-pdf-node

Background color not working for header and footer template

Opened this issue · 3 comments

I'm trying to set background color to footer and header and nothing has worked, I've tried this puppeteer/puppeteer#2182 but didn't work

Hey... have you managed to find a solution to this issue ?

Hey, unfortunately no, eventually I started using docx because it was more suitable for my use case

You should use -webkit-print-color-adjust: exact in body. that will helpful for you.
example:
body{
font-family: Helvetica;
margin: 0;
-webkit-print-color-adjust: exact;
}