Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel WKHTMLTOPDF Not Working

I am using the laravel php framework, version 4.1 and the wkhtml2pdf package. I am using the following code in routes.php:

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

But I get this error saying WKHTMLTOPDF didn't return any data: Error I get I also tried using an internal view like this:

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

But I got the same error I have also tried giving my whole project recursive permissions and that did not fix it either. I am running OS X 10.9 on a 2011 macbook pro and using mamp

like image 885
735Tesla Avatar asked Oct 21 '22 18:10

735Tesla


1 Answers

I see this in the Troubleshooting manual for this package:

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

Have you given this a shot?

like image 112
James Binford Avatar answered Oct 27 '22 10:10

James Binford