我对codeigniter中的TCPDF库有疑问。我收到了一个错误:
TCPDF ERROR: [Image] Unable to get image: /home/mrakodol/public_html/ecarrent/ecarrent/tcpdf/cache/img_QwbOB4
我对该文件夹拥有777权限,并且拥有类似的.htaccess文件:
RewriteEngine On
RewriteBase /
# Hide the application and system directories by redirecting the request to index.php
RewriteRule ^(application|system|\.svn) index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
你能帮助我吗?
答案 0 :(得分:1)
TCPDF似乎对文件名非常挑剔。它说缓存的文件不存在。这可能意味着无法生成缓存文件,因此请检查是否有任何源图像在其文件名中包含标点符号,空格或其他棘手字符。还要确保它们是RGB格式而不是CMYK,并确保有足够的内存来处理它们。