csstwitter-bootstraprotativa

Rotativa ignoring Boostrap CSS when published to the server


Rotativa correctly shows and renders a PDF with my Bootstrap when hosted locally, but not once it is posted to the server. The rendered PDF shows some CSS, but no Bootstrap. I have seen other posts about this, but the suggestions did not work. The Rotativa folder is in the root of the web app as suggested.


Solution

  • I had the same issue, and solved it by changing it to something like:

    <link href="@Server.MapPath("~/Content/bootstrap.min.css")" rel="stylesheet" />