Barryvdh\DomPDF how to break page inside a table
<p>I use Barryvdh\DomPDF to create my pdf from a &quot;laravel&quot; view.</p>
<p>I want to get the same title on each page. To do that, my code is :</p>
<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;fr&quot;&gt;
    &lt;head&gt;
        &lt;meta charset=&quot;utf-8&quot;&gt;
        &lt;title&gt;Liste des personnes&lt;/title&gt;
        &lt;link href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;&gt;
        &lt;style&gt;
        .header,
        .footer {
        width: 100%;
        text-align: center;
        position: fixed;
        }
        .header {
        top: 0px;
        }
        .footer {
        bottom: 0px;
        }
        .pagenum:before {
        content: counter(page);
        }

        &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;

        {{-- -------------------------------------------------------- --}}
        {{-- pour ajouter une entete et un pied de page au pdf généré --}}
        {{-- -------------------------------------------------------- --}}

        &lt;div class=&quot;header&quot;&gt;
            &lt;h2&gt;Liste des personnes&lt;/h2&gt;
            &lt;hr&gt;    
        &lt;/div&gt;
        &lt;div class=&quot;footer&quot;&gt;
            Page &lt;span class=&quot;pagenum&quot;&gt;&lt;/span&gt;
        &lt;/div&gt;
        &lt;div style=&quot;page-break-after:always;&quot;&gt;
        
        &lt;table class=&quot;table table-striped&quot; style=&quot;margin-top:30mm&quot;&gt;
            &lt;tbody&gt;
                
                @foreach($liste_personnes as $personne)

                &lt;tr&gt;
                    &lt;td class=&quot;text-center&quot;&gt;
                        &lt;img style=&quot;height: 100px&quot;  src=&quot;{{ asset($personne-&gt;nom_photo_vignette) }}&quot; alt=&quot;pas de photo&quot;&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;strong&gt;{{ $personne-&gt;nom.' '.$personne-&gt;prenom }}&lt;/strong&gt;&lt;br&gt;
                        {{ $personne-&gt;adresse1 }}&lt;br&gt;
                        {{ $personne-&gt;code_postal.' '.$personne-&gt;commune }}
                    &lt;/td&gt;
                    &lt;td&gt;
                        né(e) le {{ $personne-&gt;date_naissance_dmY }}&lt;br&gt;
                        {{ $personne-&gt;libelle_role }}
                    &lt;/td&gt;
                &lt;/tr&gt;
                @endforeach
            &lt;/tbody&gt;
        &lt;/table&gt;
        &lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p>But the result is this one :</p>
<p><a href="https://i.stack.imgur.com/Apf72.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Apf72.png" alt="enter image description here" /></a></p>
<p>As you can see, the header and footer are fine on the 1st page .But not for the next pages.</p>
<p>How to add some spaces for each new first row on each new page?</p>