dompdf 无法加载
我正在尝试让dompdf在内部服务器上运行。使用默认的config.inc.php设置,在运行演示“Hello Wolrd”脚本的等效项时,我得到以下内容:
Warning: require_once(/var/www/dompdf-master/lib/php-font-lib/classes/font.cls.php): failed to open stream: No such file or directory in /var/www/dompdf-master/dompdf_config.inc.php on line 335
Fatal error: require_once(): Failed opening required '/var/www/dompdf-master/lib/php-font-lib/classes/font.cls.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/dompdf-master/dompdf_config.inc.php on line 335
当我关闭时,我不再收到此警告,但代码失败,如下所示:DOMPDF_ENABLE_AUTOLOAD
Fatal error: Class 'DOMPDF' not found in /var/www/rfq/test.php on line 115
代码如下:
require_once("/var/www/dompdf-master/dompdf_config.inc.php");
$dompdf = new DOMPDF(); // this is the line that fails
$dompdf->load_html($quotehtml);
$dompdf->render();
$dompdf->stream("rfq".$_REQUEST['quoteid'].".pdf");
这是Ubuntu 12.04,最新的补丁,具有默认的Apache设置。
非常感谢。