Extension Pdf And Style

Hello,

I use this extension :

http://www.yiiframework.com/extension/pdf/

but I can’t apply my stylesheet.

here my code in the controller :




public function actionPrintFicheFaitiere($id) {


        $modelAdherent = $this->loadModel($id);

        $modelPersonne = PerPersonne::model()->findByPk($modelAdherent->fk_personne);

        $modelAdresse = PerAdresse::model()->findByPk($modelPersonne->fk_adresse_id);

        $modelContrat = EnsContrat::model()->findByAttributes(array('fk_adherent' => $modelAdherent->adherent_id));

      

        

        $html2pdf = Yii::app()->ePdf->HTML2PDF();

        # Load a stylesheet

//        $stylesheet = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR.'..\..\themes\bootstrap\css\styles.css');

//        $html2pdf->WriteHTML($stylesheet, 1);

        $html2pdf->WriteHTML($this->renderPartial('printFicheFaitiere', array(

            'modelPersonne' => $modelPersonne,

            'modelAdresse' => $modelAdresse,

            'modelContrat' => $modelContrat,

            'modelAdherent' => $modelAdherent,

        ), true));

        $html2pdf->Output();

        

}



and I try to put my style in my view, but without success.

Any idea?

thank’s

Nath