Question

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

Was it helpful?

Solution

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top