Rotativa MVC not loading CSS or Images on PDF
<p>I have a action which works well ( loads all images and CSS) as a normal action but when I use Rotativa.MVC.ViewAsPdf to produce a PDF it don't load the CSS. and the application doesn't show any errors </p>

<pre><code>public ActionResult DownloadNonProfessionalDeputy(int id) 
  {
      Application_Attorney_NonProfessional oAP = db.Application_Attorney_NonProfessional.Find(id);
      return new Rotativa.MVC.ViewAsPdf(oAP) { FileName = string.Format("DCM_Attorney_Non_Professional_Application.pdf", new { CustomSwitches = "--print-media-type --header-center \"text\"" }) };// {   =  "--header-right \"Page [page] of [toPage]\""};

      //return View(oAP);
  }
</code></pre>

<p>help appreciated </p>

<p><strong>Image from PDF</strong> </p>

<p><a href="https://i.stack.imgur.com/CnB8I.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CnB8I.png" alt="enter image description here"></a></p>

<p><strong>Image from HTML View</strong> </p>

<p><a href="https://i.stack.imgur.com/hRKSh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hRKSh.png" alt="enter image description here"></a></p>

<p><strong>The View</strong></p>

<pre><code>@model DCM_Intranet.Models.Application_Attorney_NonProfessional
@{
    Layout = null;
    int nPage = 0;
}
&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="utf-8"&gt;
&lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"&gt;
&lt;meta name="description" content=""&gt;
&lt;meta name="author" content=""&gt;
&lt;link rel="shortcut icon" href="~/images/gale_phillipson_corn.ico" type="image/x-icon"&gt;
&lt;title&gt;Attorney Non-Professional Application&lt;/title&gt;
&lt;link href="~/css/style.default.css" rel="stylesheet"&gt;
&lt;link href="~/css/jquery.datatables.css" rel="stylesheet"&gt;
&lt;script src="~/Scripts/jquery-2.2.3.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/bootstrap.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/modernizr.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/jquery-migrate-1.2.1.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/jquery.sparkline.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/toggles.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/retina.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/jquery.cookies.js"&gt;&lt;/script&gt;
&lt;script src="~/js/morris.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/raphael-2.1.0.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/jquery.datatables.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/chosen.jquery.min.js"&gt;&lt;/script&gt;
&lt;script src="~/js/custom.js"&gt;&lt;/script&gt;
&lt;script src="~/js/jquery.capslockstate.js"&gt;&lt;/script&gt;
&lt;script src="~/js/jspdf.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div class="container-fluid" id="content"&gt;
            &lt;!-- Top Header --&gt;
            &lt;div class="row"&gt;
                &lt;div class="col-md-12"&gt;
                    &lt;table class="table"&gt;
                        &lt;tr&gt;
                            &lt;td valign="middle" align="left"&gt;&lt;h2&gt;Data Capture&lt;/h2&gt;&lt;/td&gt;
                            &lt;td valign="middle" align="right"&gt;&lt;img src="~/Images/dcm.png" width="403" height="100" class="pull-right" /&gt;
                        &lt;/tr&gt;
                    &lt;/table&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="row"&gt;
                &lt;div class="col-md-12"&gt;
                    @{nPage++;}
                    &lt;div class="row"&gt;
                        &lt;div class="col-sm-6 pull-left"&gt;&lt;h2&gt;Court of Protection/Power of Attorney - Non-Professional &lt;/h2&gt;&lt;/div&gt;
                        &lt;div class="col-sm-6 pull-right vcenter"&gt;&lt;strong&gt;Page @nPage&lt;/strong&gt;&lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="row"&gt;
                &lt;div class="col-md-12"&gt;
                    &lt;div class="alert alert-info" role="alert"&gt;
                        &lt;strong&gt;Should you require any guidance in completing this form please contact the DCM New Business Team on 01748 825971 or dcm@dcmcash.com&lt;/strong&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="row"&gt;
                &lt;div class="col-md-12"&gt;
                    &lt;div class="well well-sm"&gt;
                        &lt;p&gt;This form is for use for Court of Protection/Power of Attorney case where the deputy is Not Acting in a Professional Capacity.&lt;/p&gt;
                        &lt;p&gt;
                            This form is intended for professional Introducer/Adviser use only—please do not pass it to your client. The objective of this form is to collect all of the data required to operate Dynamic Cash Management efficiently without any need for your input at a later date.
                        &lt;/p&gt;
                        &lt;p&gt;Please ensure that the form is completed in full, as any omissions may lead to a delay in setting up your client’s Dynamic Cash Management account.&lt;/p&gt;
                        &lt;p&gt;
                            &lt;b&gt;
                                It is particularly important to ensure that your client is consulted on Sections 8 (ATRI) and 9 (Liquidity) as they are used to determine the types of institutions and accounts that we will deposit your client’s cash with. Proper consultation will ensure that Dynamic Cash Management use only those institutions that your client is comfortable with and that they are able to withdraw funds when they need them.
                            &lt;/b&gt;
                        &lt;/p&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
&lt;/div&gt;
    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>