wkhtmltopdf could not connect to display :0.0 xframe 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