It can be MULTIPLE issues as you may find it online.
This is a remind for myself that most of the time I can just run with xvfb-run
.
xvfb-run wkhtmltopdf http://google.com.br google.pdf
Errors:
- QXcbConnection: Could not connect to display
- in Django wkhtmltopdf: returned non-zero exit status -6