使用TCPDF生成PDF文件时“无法打开目录”错误

时间:2016-11-11 14:56:10

标签: symfony pdf pdf-generation tcpdf

我正在尝试使用TCPDF生成PDF。我有数据要在PDF中呈现,我为此创建了控制器,但是我收到以下错误:

    Warning: opendir(/home/symfony/pricing/web/tcpdf/fonts/): failed to open dir: No such file or directory
500 Internal Server Error - ContextErrorException

我不知道它来自哪里。

有什么建议吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

这意味着opendir()无法找到所提供的目录。尝试在您的文件中搜索' web / tcpdf / fonts /'找到该代码并提供正确的字体位置

相关问题