title: yii pdf download by tcpdf
body: <p>In my site, I want to export a view to pdf so I used pdf extension:</p>
  
  <pre><code>            $mPDF1 = Yii::app()-&gt;ePdf-&gt;mpdf();
  
              $mPDF1 = Yii::app()-&gt;ePdf-&gt;mpdf('', 'A5');
  
              $mPDF1-&gt;WriteHTML($this-&gt;render('TLR_22', array(), true));
  
              $stylesheet = file_get_contents(Yii::app()-&gt;themeManager-&gt;baseUrl.'/default/css/sheets/style');
              $mPDF1-&gt;WriteHTML($stylesheet, 1);
  
              $mPDF1-&gt;Output();
  </code></pre>
  
  <p>It exported html to pdf but not load css althought I changed path to absolute path like this:</p>
  
  <pre><code>$stylesheet = file_get_contents('D:/xampp/htdocs/Yii/DialSetup/themes/default/css/sheets/style.css');
  </code></pre>
  
  <p>How can I solve this problem? Thanks... :)</p>