[英]“Failed to open dir” error when generating a PDF file with TCPDF
I'm trying to generate a PDF with TCPDF. 我正在尝试使用TCPDF生成PDF。 I have the data to render in the PDF, I created the controller for that, but I'm getting the following error:
我有要在PDF中呈现的数据,为此我创建了控制器,但是出现以下错误:
Warning: opendir(/home/symfony/pricing/web/tcpdf/fonts/): failed to open dir: No such file or directory
500 Internal Server Error - ContextErrorException
I don't know where it comes from. 我不知道它从哪里来。
Any suggestion? 有什么建议吗?
Thanks! 谢谢!
it means opendir()
can't find the directory supplied. 这意味着
opendir()
找不到提供的目录。 try to search your files for 'web/tcpdf/fonts/' to locate that code and supply the correct location of the fonts 尝试在文件中搜索“ web / tcpdf / fonts /”以找到该代码并提供正确的字体位置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.