Laravel WKHTMLTOPDF不工作

735*_*sla 5 php wkhtmltopdf laravel laravel-4

我正在使用laravel php框架,版本4.1和wkhtml2pdf包.我在routes.php中使用以下代码:

Route::get('/test/export', function() {
    return PDF::url('http://google.com');
});
Run Code Online (Sandbox Code Playgroud)

但我得到这个错误说WKHTMLTOPDF didn't return any data: 我得到的错误 我也试过使用这样的内部视图:

Route::get('/test/export', function() {
    return PDF::html('Auth.home');
});
Run Code Online (Sandbox Code Playgroud)

但我得到了同样的错误,我也试过给我的整个项目递归权限,但也没有解决它.我在2011年的macbook pro上运行OS X 10.9并使用mamp

Jam*_*ord 3

我在该包的故障排除手册中看到了这一点:

1. Some users have noted a strange permissions issue executing the drivers. Try chmod'ing the driver files to solve the issue.

你有尝试过吗?

  • 经过一段时间的权限摆弄后,我终于让它工作了。显然它无法执行设置。 (2认同)