I'm using ITextRenderer
to generate pdf in my application by loading a html file with internal styles. My HTML page is like this:
<html>
<head>
<style type="text/css">.TFtable tr:nth-child(even) {background: #ffffff; border:none;}</style>
</head>
<body>
<table class="TFtable" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th align="left" valign="middle" scope="col"> Customer </th> </tr>
</table>
</body>
</html>