title: How to save Rotativa PDF on server
body: <p>I am using Rotativa to generate PDF in my "MVC" application. How can I save Rotativa PDF? I need to save the document on a server after all the process is completed.</p>
  
  <p>Code below:</p>
  
  <pre><code>public ActionResult PRVRequestPdf(string refnum,string emid)
  {
      var prv = functions.getprvrequest(refnum, emid);            
      return View(prv);
  
  }
  public ActionResult PDFPRVRequest()
  {
      var prv = Session["PRV"] as PRVRequestModel;
      byte[] pdfByteArray = Rotativa.WkhtmltopdfDriver.ConvertHtml("Rotativa", "Approver", "PRVRequestPdf");
      return new Rotativa.ViewAsPdf("PRVRequestPdf", new { refnum = prv.rheader.request.Referenceno });            
  
  } 
  </code></pre>