The Status report is showing:

Error
wkhtmltopdf library Non-executable permissions
You must modify the permissions of the wkhtmltopdf file (sites/all/libraries/wkhtmltopdf) to make it executable.

And when I try to generate a PDF no Save dialogue pops up.

When I use dompdf instead I do get the Save dialogue, so it's only an issue with wkhtmltopdf executable.

The permissions for wkhtmltopdf were

-rwxrwxr--+ 1 apache apache

I tried allowing all permissions and tried other users but it didn't help. It used to work until recently, I don't know what might have changed.

Is there anything else I need to do to make it executable?

Comments

moehac’s picture

I'm experiencing same issue... were you able to fix it?

portulaca’s picture

I think it did work in the end, even though it printed an extra blank page at the end of the PDF. I didn't do anything special, at least not that I remember, maybe it was just a matter or clearing cache?

moehac’s picture

Ok, thanks!

moehac’s picture

Issue had to do with how the drive was mounted. Since drupal folder is located on a separate mount, we had "noexec" as one of the attributes. This of course prevented the executable to run, regardless of having 755 permissions on the file.

Hope this helps someone else.

jcnventura’s picture

Status: Active » Closed (works as designed)