this is the code sample in the advanced pdf template to add styling in the even item lines.
To add these styling

In the advanced PDF template
<#if item.item?string != "Sales Note"> <!-- Exclude 'Sales Note' -->
<tr style="<#if item_index % 2 == 1>background-color: #f2f2f2;</#if>">
<td>