title: rotativa pdf in asp.net core can't have header and footer
body: <p>i have some trouble to get the header AND the footer at the same time
   in the generated PDF in rotativa asp.net core .</p>
  
  <p>here my controller code :</p>
  
  <pre><code>   string customSwitches = string.Format(" --header-html {0} --footer-html {1}   ",
  
                                Url.Action("PDFHeader", "PDF", new { vinum = VINUM, YEAR="2018" }, "https") ,
  
                                 Url.Action("PDFFooter", "PDF", new { }, "https"));
  
                      return new ViewAsPdf(res)
                      {
                          PageSize = Size.A4,
                          PageOrientation = Orientation.Portrait,
                          CustomSwitches = customSwitches ,
                           PageMargins = { Left = 20, Bottom = 20, Right = 20, Top = 20 }  
  
                      };
  </code></pre>
  
  <p>if i remove the footer the header show correctly .
  if i remove the header the footer show correctly .</p>
  
  <p>as you can see the header and footer are dynamically generated .</p>
  
  <p>any idea on what's going on ?</p>
  
  <p>Rotativa version    : 1.0.6</p>
  
  <p>wkhtmltopdf version : 0.12.5 (with patched qt)</p>
  
  <p>thanks .</p>