title: Symfony2 Knp-snappy to generate PDF doesn't import CSS
body: <p>I would like to generate a pdf from an html.twig template but something wrong...</p>
  
  <p>In fact, the PDF has been create with the good content but there is no layout. It's seems the CSS files are not import...</p>
  
  <p>I use Bootstrap from twitter to manage the layout.</p>
  
  <p>Here the part of my controller</p>
  
  <pre><code> $filename = "CI-TRI-".$Chrono-&gt;getChrono();
              $this-&gt;get('knp_snappy.pdf')-&gt;generateFromHtml(
                                                              $this-&gt;renderView('WebStoreMainBundle:Admin:customInvoiceTemplate.html.twig', array('User'=&gt;$User,'Parts'=&gt;$parts, 'device'=&gt;$device, 'rate'=&gt;$rate)),
                                                              __DIR__.'/../../../../web/download/'.$filename.'.pdf'
                                                              );
  </code></pre>
  
  <p>And here my layout :</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
       {% block stylesheets %}
          &lt;link rel="stylesheet" type="text/css" href="{{ asset('bootstrap/css/bootstrap.css') }}"&gt;
          &lt;link rel="stylesheet" type="text/css" href="{{ asset('bootstrap/css/customInvoice.css') }}"&gt;
          &lt;base href="http://{{app.request.host}}"&gt;
          &lt;meta charset="UTF-8" &gt;
      {% endblock %}
  &lt;/head&gt;
  &lt;body&gt;
      {% block header %}
          &lt;div class="span2"&gt;
              &lt;img src="{{ asset('bootstrap/img/GTO_logo.png') }}"&gt;
          &lt;/div&gt;
      {% endblock %}
  
      {% block content %}
  
      {% endblock %}
  
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Wish someone can help me..</p>
  
  <p>PS: Sorry for the typos, english is not my native language.</p>