Hello I am developing an web with python Flask in a linux server, in doing so I am trying to use
I am using a linux server(ubuntu).
In Putty, after logging into my server, at root@myname:~# I downloaded pdfkit using apt-get, and downloaded
wkhtmltopdf. And I go to python by typing python on the command. And I am trying to convert a url into a pdf file by typing in python;
import pdfkit pdfkit.from_url('sample url','output.pdf')
here I got an error saying:
IOError: wkhtmltopdf exited with non-zero code -6. error: QXcbConnection: Could not connect to display.
What went wrong? installing was a problem? or which part?
And also, if it works correctly, where can I find the output file? which directory? I am using
WinSCP to manage files.