运行' php load_font.php'失败:"没有这样的文件或目录"

时间:2015-03-17 21:45:14

标签: php dompdf

我正在尝试运行:

php load_font.php montserrat ./Montserrat-Bold.otf

(按照此处所述:Custom Fonts for DOMPDF

但是会导致以下错误:

Warning: require_once(/Applications/MAMP/htdocs/project/wp-content/themes/project/vendor/dompdf/dompdf/lib/php-font-lib/classes/Font.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/project/wp-content/themes/project/vendor/dompdf/dompdf/dompdf_config.inc.php on line 332

Fatal error: require_once(): Failed opening required '/Applications/MAMP/htdocs/project/wp-content/themes/project/vendor/dompdf/dompdf/lib/php-font-lib/classes/Font.php' (include_path='.:/Applications/MAMP/bin/php/php5.5.14/lib/php') in /Applications/MAMP/htdocs/project/wp-content/themes/project/vendor/dompdf/dompdf/dompdf_config.inc.php on line 332

为什么?

0 个答案:

没有答案