title: DOMPDF table header
body: <p>How to make </p>
  
  <pre><code>&lt;tr&gt;
              &lt;th&gt;a&lt;/th&gt;
              &lt;th&gt;b&lt;/th&gt;
              &lt;th&gt;c&lt;/th&gt;
              &lt;th&gt;d&lt;/th&gt;
              &lt;th&gt;e&lt;/th&gt;
          &lt;/tr&gt;
  </code></pre>
  
  <p>always printable on every page.</p>
  
  <p>My View     </p>
  
  <pre><code>&lt;style&gt;
               @page { margin: 150px 50px; }
               #header { position: fixed; left: 0px; top: -100px; right: 0px; height: 50px; text-align: center; }
               #footer { position: fixed; left: 0px; bottom: -180px; right: 0px; height: 150px; text-align: center; }
               #footer .page:after { content: counter(page, upper-roman); }
             &lt;/style&gt;
  
          &lt;div id="header"&gt;
               &lt;h1&gt;Tittle&lt;/h1&gt;
             &lt;/div&gt;
  
          &lt;div id="content"&gt;
          &lt;?php
          echo"&lt;table class='gridtable'&gt;";
          ?&gt;
      &lt;table width="100%" page-break-inside: auto;&gt;
  
              &lt;tr&gt;
              &lt;th&gt;a&lt;/th&gt;
              &lt;th&gt;b&lt;/th&gt;
              &lt;th&gt;c&lt;/th&gt;
              &lt;th&gt;d&lt;/th&gt;
              &lt;th&gt;e&lt;/th&gt;
          &lt;/tr&gt;
  
  
          &lt;?php
          $num = 0;
          foreach($result as $key=&gt;$val){
              $num++;
                  echo"&lt;tr&gt;
                              &lt;td&gt;".$a."&lt;/td&gt;".
                              "&lt;td&gt;".$val['b']."&lt;/td&gt;".
                              "&lt;td&gt;".$val['c']."&lt;/td&gt;".
                              "&lt;td&gt;".$val['d']."&lt;/td&gt;".
                              "&lt;td&gt;".$val['e']."&lt;/td&gt;".
                              "&lt;/tr&gt;";
          }
          ?&gt;
          &lt;/table&gt;
          &lt;?php
          echo"&lt;/table&gt;";
          ?&gt;
          &lt;/div&gt;
          &lt;script type="text/php"&gt;
  
              if ( isset($pdf) ) {
  
                $font = Font_Metrics::get_font("helvetica", "bold");
                $pdf-&gt;page_text(280, 780, "Page {PAGE_NUM} of {PAGE_COUNT}", $font, 10, array(0,0,0));
  
              }
              &lt;/script&gt;
  </code></pre>
  
  <p>For Example, Here is my PDF after i downloaded</p>
  
  <p>1st page :</p>
  
  <pre><code>| Title 1 | Tittle 2 | Tittle 3 |
  | row 1   | row 1    | row 1    |
  </code></pre>
  
  <p>2nd page :</p>
  
  <pre><code>| row 2   | row 2    | row 2    |
  </code></pre>
  
  <p>How to make 2nd page like this :</p>
  
  <pre><code>| Title 1 | Tittle 2 | Tittle 3 |
  | row 2   | row 2    | row 2    |
  </code></pre>
  
  <p>I want the Tittle always printed on top every page. Thank You</p>