Forum How do I...?

Add the number of the page in a table that is used in the page header


I have a small table in the page header like this:
<table id="header">
       <th rowspan="3">Table</th>
       <th>Column 1</th>
       <th>Column 2</th>
       <th colspan="2">Column 3 and 4</th>
       <th rowspan="2">Column 5</th>
       <td rowspan="2">Text 1</td>
       <td rowspan="2">Text 2</td>
       <th>Text 3</th>
       <th id="pageNumber">Text 4</th>

    border-collapse: collapse;
    font-size: x-small;
    text-align: center;
td, th
    border: 1px solid black;

I want to have the number of the page in a specific place in the table (for example, where is "pageNumber") - something like "Page 45 of 90".
The PDF will be created using C#.

Anyone has an idea how I can accomplish this?


Edited by skoleva

Never mind, I got it.
I just set
   content: \"Page \" counter(page) \" of \" counter(pages);