title: how to hide margins in headless chrome generated pdf?
body: <p>I'm using headless chrome to generate a long pdf document with Python/Django.</p>
  
  <p>Is there a way to remove header with date and footer with url and pages count from pages?</p>
  
  <p>Tried to use</p>
  
  <pre><code>@page{
      margin: 0;
      size: auto;
  }
  </code></pre>
  
  <p>but with this css there are no margins, which i need.</p>
  
  <p>tried to wrap page content with <code>div.wrapper</code> and style</p>
  
  <pre><code>.wrapper{
      margin: 15mm 10mm 15mm 15mm;
  }
  </code></pre>
  
  <p>but with this solution there are top and bottom margins only on first and last pages. Pages between are without vertical margins and stick to top and bottom.</p>
  
  <p>read here: <a href="https://cs.chromium.org/chromium/src/headless/app/headless_shell_switches.cc" rel="nofollow noreferrer">https://cs.chromium.org/chromium/src/headless/app/headless_shell_switches.cc</a>
  there is no any special flag to launch chrome with headers and footers disabled</p>
  
  <p>is there any solution to hide page header and footer, but save margins?</p>