title: How Do I Specify Dynamic Page Footer & Header in HTML2PDF
body: <p>I'm trying to convert a html page to PDF with <a href="https://github.com/spipu/html2pdf" rel="nofollow noreferrer">HTML2PDF</a>. HTML page has a form and this form contains textareas with dynamic heights. The height of the textarea is adjusted according to the text in it.</p>
  <p><a href="https://i.stack.imgur.com/tXm93.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tXm93.png" alt="enter image description here" /></a></p>
  <p>Problem sample is in <a href="https://codepen.io/ogzhncrt/pen/LYRVPpZ" rel="nofollow noreferrer">here</a>.</p>
  <pre><code>&lt;div class=&quot;page-content&quot;&gt;
  &lt;a href=&quot;#&quot; id='download'&gt;Download&lt;/a&gt;&lt;br&gt;
  &lt;textarea name=&quot;&quot; id=&quot;&quot; cols=&quot;&quot; rows=&quot;&quot; style='height:320px;'&gt;&lt;/textarea&gt;&lt;br&gt;
  &lt;textarea name=&quot;&quot; id=&quot;&quot; cols=&quot;&quot; style='height:420px;' rows=&quot;&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
  &lt;textarea name=&quot;&quot; id=&quot;&quot; cols=&quot;&quot; style='height:250px;' rows=&quot;&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
  &lt;textarea name=&quot;&quot; id=&quot;&quot; cols=&quot;&quot; style='height:278px;' rows=&quot;&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
  &lt;textarea name=&quot;&quot; id=&quot;&quot; cols=&quot;&quot; style='height:176px;' rows=&quot;&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
  &lt;textarea name=&quot;&quot; id=&quot;&quot; cols=&quot;&quot; style='height:114px;' rows=&quot;&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
  &lt;/div&gt;
  </code></pre>
  <p>As you can see in the example, I get results similar to the image below. In the sample, I fixed height of texareas. It is determined dynamically on the page I am dealing with.</p>
  <p><strong>You can find a sample image below for the result I want to get;</strong></p>
  <p><a href="https://i.stack.imgur.com/M11YW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M11YW.png" alt="enter image description here" /></a></p>
  <p>Any help or advice can be helpful. I tried <a href="https://stackoverflow.com/questions/16197322/how-do-i-specify-a-header-footer-for-html2pdf-to-use-when-rendering-a-pdf">this</a> but the form has multiple pages and I don't have any idea how can I set page footer and header dynamically.</p>