I created an audit report using flying saucer to convert from HTML to pdf. And I want to create an table of content in the first page to know titleProduct
belong which page? How do I do it?
<div th:each="productGroup: ${productGroups}">
<table class="audit-table">
<thead>
<tr class="pg-node pg-title">
<td class="titleProduct" colspan="3">[[${productGroup.getPgNumber()}]] - [[${productGroup.getPgName()}]]</td>
</tr>
<tr class="pg-node row">
<th>BRAND</th>
<th>MODEL</th>
<th>FEATURE TEXT</th>
<th>ARTICLE</th>
</tr>
</thead>
<tbody>
<th:block th:each="audit: ${productGroup.getPdfAuditColumns()}">
<tr>
<td th:text="${audit.getBrand()}"></td>
<td th:text="${audit.getModel()}"></td>
<td th:text="${audit.getFeatureText()}"></td>
<td th:text="${audit.getArticle()}"></td>
</tr>
</th:block>
</tbody>
</table>
</div