mrafiqk / html-pdf-node

187 stars 119 forks source link

Background color not working for header and footer template #97

Open kevingetcharta opened 1 year ago

kevingetcharta commented 1 year ago

I'm trying to set background color to footer and header and nothing has worked, I've tried this https://github.com/puppeteer/puppeteer/issues/2182 but didn't work

ltbongo commented 9 months ago

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

kevingetcharta commented 9 months ago

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

navneetco0 commented 8 months ago

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