We can perform date math operations also in advanced PDF using Freemarker technique by embedding functions. The following code snippet provides the idea of Date math operation performed to find out the expected ship date is greater than 10.
<!-- Function -->
<!-- Calculate Days from a Specific Date -->
<#function dateDiff date days>
<#assign timeInMillisecond = (1000 * 60 * 60 * 24 * days) />
<#assign aDate = date?long + timeInMillisecond?long />
<#return aDate?number_to_date>
</#function>
<!-- Date Vars -->
<#assign date_today = .now />
<#assign date_ten_days_from_today = dateDiff(date_today, 10) />
<!-- Line Item Loop -->
<!-- Rule: If Expected Ship Date is greater than 10 days from now, then don't print those line items -->
<#if item.expectedshipdate?has_content>
<#if !(item.expectedshipdate?date > date_ten_days_from_today?date)>
<tr>
<td><span style="font-size:8px;">${item.inventorydetail}</span></td>
<td><span style="font-size:8px;">${item.item}</span></td>
<td><span style="font-size:8px;">${item.description}</span></td>
<td><span style="font-size:8px;">${item.quantitycommitted}</span></td>
<td><span style="font-size:8px;">${item.units}</span></td>
<td><span style="font-size:8px;">${item.quantityonhand}</span></td>
<td><span style="font-size:8px;">${item.location}</span></td>
<td><span style="font-size:8px;">${item.expectedshipdate}</span></td>
</tr>
</#if>
</#if>
you can also refer the same:http://blog.prolecto.com/2019/05/12/learn-how-to-perform-date-math-in-netsuite-freemarker-advanced-pdf-templates/