Hi @mar and @federico_calvo,
have you checked if the ssl-module required for https-connections of wkhtmltopdf is available? There is an easy test for this: create a simple html file, which includes an image from an https source, e.g. something like
<html>
<head>
<title>Test</title>
</head>
<body>
<h1>Hello World</h1>
<img src="https://en.wikipedia.org/wiki/File:Erpnext_logo.svg" alt="Logo" />
</body>
</html>
Save this as test.html on the server and then run
$ wkhtmltopdf test.html test.pdf
and observe the errors. If you find something like
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_library_init
install libssl1.0-dev:
$ sudo apt install libssl1.0-dev
Then, try again and see if is resolved…
Hope this helps.