Thank you for the suggestion, unfortunatly I have tried that already
<header>
<style type="text/css">
body {
-webkit-print-color-adjust: exact;
}
tr:nth-child(odd) {
background-color: #0088c0;
}
</style>
</header>
<body>
<table style="margin-top: 45px; font-family: Muli, sans-serif; overflow: visible !important;">
<thead>
</thead>
<tr *ngFor="let result of data.results; let i = index" style="font-size: 12px; break-inside: avoid !important;"
[ngStyle]="{ height: data.type === 'pdf' ? '45px' : '5px', color: i%2 === 0 ? '#000000' : '#6B6B6B', background-color: i%2 === 0 ? 'white' : 'black'}">
</tr>
</table>
</body>
This is roughly what I have. I have tried what you suggest in the style tag, with no effect.
I have tried what you can see in the tr tag above. It wotks for color, however the background-color you can see here gives me an compolation error (missing expected : ). I have seen that people sometime struggle with the background-color keyword when compiling pdfs so I have also tried the same using "background" and "backgroundColor" (I tried this because fontWeight works whereas font-weight does not). Both of these last suggestions compile, but they have no impact on the pdf