title: Wkhtmltopdf - How to incorporate --header-spacing when using --header-html command?
body: <p>I have a project that I need to complete, and this involves some wkhtmltopdf troubleshooting.
  So far I have been able to add header and footer dynamically by using "--header-html" and "--footer-html" commands when creating my pdf. The problem that I need help in solving is like my title states. I need to figure out how to call --header-spacing when calling --header-html command. </p>
  
  <p>As of right now, I have tried the following command:</p>
  
  <pre><code>wkhtmltopdf -O landscape -L 0mm -R 0mm --header-spacing 5mm &lt;target-page-url&gt; --header-html "&lt;target-header-location&gt;" --footer-html "&lt;target-header-location&gt;" sample.pdf
  
  wkhtmltopdf -O landscape -L 0mm -R 0mm  &lt;target-page-url&gt; --header-html --header-spacing 5mm "&lt;target-header-location&gt;" --footer-html "&lt;target-header-location&gt;" sample.pdf
  </code></pre>
  
  <p>Both of these commands result in an error.</p>
  
  <p><strong>Error: Failed loading page http: (sometimes it will work just to ignore this error with --load-error-handling ignore)</strong></p>
  
  <p>If you know how to accomplish this, please let me know.</p>
  
  <p>Thanks in advance.</p>