could not connect to display $DISPLAY code example
Example: QXcbConnection: Could not connect to display
Just install xvfb from apt and then, you can run:
xvfb-run wkhtmltopdf
Just install xvfb from apt and then, you can run:
xvfb-run wkhtmltopdf