SyntaxFix
Write A Post
Hire A Developer
Questions
Just tell the Qt backend to not use X:
QT_QPA_PLATFORM=offscreen wkhtmltopdf <input> <outfile.pdf>