我正在使用laravel php框架,版本4.1和wkhtml2pdf软件包。我在routes.php中使用以下代码:
Route::get('/test/export', function() {
return PDF::url('http://google.com');
});
但是我得到这个错误,说WKHTMLTOPDF didn't return any data
:我还尝试过使用如下内部 View :
Route::get('/test/export', function() {
return PDF::html('Auth.home');
});
但是我遇到了同样的错误我也尝试过给我的整个项目递归权限,但这也没有解决。
我在2011年的Macbook Pro上运行OS X 10.9并使用MAMP
最佳答案
我在此程序包的“疑难解答”手册中看到了以下内容:1. Some users have noted a strange permissions issue executing the drivers. Try chmod'ing the driver files to solve the issue.
你给了这个机会吗?
关于php - Laravel WKHTMLTOPDF无法正常工作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20808410/