title: pdfHTML/iText 7: Print <table> start/end row count in <tfoot>
body: <p>For a project I'm currently writing a document generator that uses pdfHTML 3.0.3 and iText 7.1.14. The document contains a table showing 'items'. These item rows will probably never actually fit one page and will span many pages in most cases.</p>
  <p>The first column of this table has an item number, it's possibly that there are missing item numbers (due to items being void).</p>
  <p>I would like the table to show the first and last item number in the <code>&lt;tfoot&gt;</code> of the <code>&lt;table&gt;</code>, in a ideal solution this first and last item would be dynamically determined based on what is printed on the currently layed out page.</p>
  <p>Example: <a href="https://i.imgur.com/X4cQ4HB.png" rel="nofollow noreferrer">https://i.imgur.com/X4cQ4HB.png</a> (FROM should show the number 1, and TO should show the number 5).</p>
  <p>It seems this is not possible with HTML and CSS alone as they do not support any counters that use the page as context (CSS counters seem to use global context, not page context).</p>
  <p>I think it might be possible to write a renderer based on <code>TableRenderer</code>, but I do not know where to start. iText documentation does show examples of how to create your own renderer, but I can't seem to find examples that are related to this question.</p>