title: mpdf dynamic HTML headers not appearing after auto page-breaks
body: <p>I have a dynamically generated report PDF using mpdf, with HTML headers that are changed dynamically throughout the document. This works for all pages where I manually insert a page break and set new headers, but where the page break is caused by content overflowing the page the headers don't appear and I'm left with a blank space. </p>
  
  <p>I'm using html tags to set the headers when they're updated:</p>
  
  <pre><code>&lt;sethtmlpageheader name="page_header_&lt;?=$profile_name ?&gt;" value="on" show-this-page="1" /&gt;
  </code></pre>
  
  <p>I've tried changing this (e.g. adding a page="all" attribute) but it only makes the problem worse rather than better, in fact most of the possible solutions I've tried have caused more issues than they've fixed.</p>