Render web pages to image or PDF via (modified) WebKit.
web | etc
"Could not connect to display" when running headless
This an similar errors can occur when running headless (especially older versions on legacy distros):
QXcbConnection: Could not connect to display Aborted
To solve, install and use xvfb:
xvfb-run -- /usr/bin/wkhtmltopdf [OPTIONS]