title: wkhtmltopdf: footer-spacing is too big when footer is changed
body: <p>I want to hide a part of my footer in my toc, so I do the following inside the subst() function:</p>
  
  <pre><code>if(vars['section'] == ""){document.body.className="hide-footer-text";}
  </code></pre>
  
  <p>This works more or less: The part of my footer I want to hide, disappears successfully. But my bottom-spacing changed, see attachments. How can I set a fixed bottom spacing for my footer? (I already tried option <code>-B</code> but it didn't work)</p>
  
  <p>original footer with some text and correct bottom spacing:
  <a href="https://i.stack.imgur.com/6VFbq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6VFbq.png" alt="enter image description here"></a></p>
  
  <p>footer I want to use in toc (without the text above) but here the bottom spacing grows:
  <a href="https://i.stack.imgur.com/z2bTO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z2bTO.png" alt="enter image description here"></a></p>
  
  <p>Additional Info: I could draw this text white instead of setting display:none, but that's no option for me (because I really need the additional space on these pages)</p>
  
  <p>Edit:
  Just to make sure: This is what I'm expecting on my toc-pages:
  <a href="https://i.stack.imgur.com/4ZHcy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4ZHcy.png" alt="enter image description here"></a>
  And again: I want to fill the additional space (above the line) with content, so draw the text white isn't an option.</p>
  
  <p>Edit2:
  Sorry for not mentioning it, but I thought it was clear: I add the footer via option <code>footer footer.html</code></p>
  
  <p>Edit3:
  Thank you all for your answers, but I just found out, that if I use a footer from footer.html, then it will <strong>always</strong> claim the same space at the bottom of the page. So even if I place my footer at the very bottom of my page - my content won't be expanded to that point.</p>