wkhtmltopdf div background color
Use This especially when you generate PDF from google App Script
@media print
{
.class
{
background-color: #1a4567 !important;
-webkit-print-color-adjust: exact;
}
}
I had this issue as well, and the css was right in the same HTML file. The trick for me ended up being the somewhat-mysterious "!important" at the end of the background-color tag like so:
background-color: #f2f4f7 !important;