I know that I'm late for the game here, but I had the same problem. My problem was that I was trying to write to a directory that did not exist.
I assumed that wkhtmltopdf would create the directories by which I passed it. This is not true.
After making sure that the directories existed before he tried to create my pdf, he decided.
I hope this helps someone else.
Jeremy
source share