Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux permissions issue when executing wkhtmltopdf-amd64

Tags:

wkhtmltopdf

When I run the executable "wkhtmltopdf-amd64" (from Linux), I get the following output:

QPainter::begin(): Returned false============================] 100%
Error: Unable to write to destination                              
Exit with code 1 due to http error: 403 Forbidden

I have seen in other forums that this is due to lack of permissions to write the temporary file. Which directory do I need to make writable in order to allow "wkhtmltopdf-amd64" to create the temporary file?

like image 451
Yirmiyahu Fischer Avatar asked Jan 16 '12 14:01

Yirmiyahu Fischer


1 Answers

make sure you have access to the directory ie : you are the owner and have write permissions when you run wkhtmltopdf http://www.google.com test.pdf

you can always su sudo and try it out but generally i wouldn't write to any where but home just so i dont store junk in important places.

like image 194
Aditya Avatar answered Jan 02 '23 09:01

Aditya