title: Why is dpi ignored in wkhtmltopdf?
body: <p>Why is the --dpi argument ignored for the following case?</p>
  
  <p>I'm using wkhtmltopdf 0.12.2.1 (with patched qt) if that matters.</p>
  
  <p>I found this related issue but surprised the problem would still exist years later:
  <a href="https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2579" rel="nofollow noreferrer">https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2579</a></p>
  
  <p>temp.html content:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
              &lt;style&gt;
                      h1 {
                              font-size: 60px;
                              border-bottom: 2px solid black;
                      }
              &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
              &lt;h1&gt;Hello World&lt;/h1&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>--dpi gets ignored even if I specify --disable-smart-shrinking.
  cat temp.html | wkhtmltopdf  --debug-javascript --margin-top 0 --margin-left 0 --margin-right 0 --dpi 300 - test_100.pdf
  <a href="https://i.stack.imgur.com/nZqlp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nZqlp.jpg" alt="enter image description here"></a></p>
  
  <p>cat temp.html | wkhtmltopdf  --debug-javascript --margin-top 0 --margin-left 0 --margin-right 0 --dpi 100 - test_300.pdf
  <a href="https://i.stack.imgur.com/KRpAq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KRpAq.jpg" alt="enter image description here"></a></p>