title: Rotativa --header-html using MVC view is not working
body: <p>I have recently started using Rotativa in my project. I have HTML page which will list out data in multiple tables.I need to display page number as footer which is working and display header using MVC view when user view this HTML as PDF. Problem that I'm facing is I dont see header being displayed. I can access the header URL standalone  and it loads fine but unable to load it within pdf. Can anyone please help me here?</p>
  
  <p>Here are my action methods:</p>
  
  <p>Below action method will render PDF:</p>
  
  <pre><code>    public ActionResult PrintBenificiaryForm()
      {
          PrintBenificiary p = new PrintBenificiary();
          p.TeamMemberInfo = GetSessionValues();
          p.IndividualBenefitPlans = GetBenefitPlansandIndividuals();
  
          string customSwitches = string.Format(" --footer-left \"[page] of [toPage]\" --footer-spacing -10 --footer-font-size \"10\"  --header-html  \"{0}\" ", Url.Action("PrintHeader", "Home", null, this.Request.Url.Scheme));
          return new ViewAsPdf("PrintBenificiaryForm", p)// { FileName = p.TeamMemberInfo.FirstName + " " + p.TeamMemberInfo.LastName + ".pdf" };
          {
              CustomSwitches = customSwitches
          };
          //return View(p);
      }
  </code></pre>
  
  <p>Action method for header</p>
  
  <pre><code>    [AllowAnonymous]
      public ActionResult PrintHeader()
      {
          TeamMemberInfoModel t= GetSessionValues();
          return View(t);
      }
  </code></pre>
  
  <p>I have attached my view details and location of header file.<a href="https://i.stack.imgur.com/rDvWQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rDvWQ.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/DhPH1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DhPH1.jpg" alt="enter image description here"></a></p>
  
  <p>Also I observed that when I pass third parameter in URL.action as new {area=""} as I get blank on PDF. </p>
  
  <p>null returned when I passed area as empty to URL.Action method</p>
  
  <p>But when I tried passing null , I get 401.2 unauthorized error. </p>
  
  <p>This is URL returned when I passed to URL.Action method -<a href="http://localhost:3842/p/Home/PrintHeader" rel="nofollow noreferrer">http://localhost:3842/p/Home/PrintHeader</a>   </p>
  
  <p><a href="https://i.stack.imgur.com/qcU2v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qcU2v.png" alt="enter image description here"></a></p>