yii中的html2pdf扩展名无法正常工作

时间:2016-01-14 09:54:24

标签: php html pdf yii html2pdf

我在yii中使用html2pdf。根据指南,我在config中包含以下代码:

    'ePdf' => array(
            'class'         => 'ext.yii-pdf.EYiiPdf',
            'params'        => array(
                'HTML2PDF' => array(
                    'librarySourcePath' => 'application.vendor.html2pdf.*',
                    'classFile'         => 'html2pdf.class.php', // For adding to Yii::$classMap
                    /*'defaultParams'     => array( // More info: http://wiki.spipu.net/doku.php?id=html2pdf:en:v4:accueil
                        'orientation' => 'P', // landscape or portrait orientation
                        'format'      => 'A4', // format A4, A5, ...
                        'language'    => 'en', // language: fr, en, it ...
                        'unicode'     => true, // TRUE means clustering the input text IS unicode (default = true)
                        'encoding'    => 'UTF-8', // charset encoding; Default is UTF-8
                        'marges'      => array(5, 5, 5, 8), // margins by default, in order (left, top, right, bottom)
                    )*/
                )
            ),
        ),

我在extension和vendors文件夹中提取了所需的文件,但是我收到了像

这样的错误

" include(HTML2PDF_locale.php):无法打开流:没有此类文件或目录"。

请帮助......这个错误意味着什么。

0 个答案:

没有答案