I need wkhtmltopdf on openSuSE. I have installed it via the repository. The version is 0.12.1.
To render HTML with Symfony, I use the KnpSnappyBundle. By rendering a twig template, I got the following error message:
The exit status code '1' says something went wrong: stderr: "wkhtmltopdf: cannot connect to X server " stdout: "" command: /usr/bin/wkhtmltopdf --lowquality '/tmp/knp_snappy557ee05c6bf5f1.66652130.html' '/srv/www/project/web/pdf/document-1.pdf'.
Is there any way to run wkhtmltopdf on this way without the error? Thanks!