rdvojmoc / DinkToPdf

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
MIT License
1.09k stars 417 forks source link

Linux issues #106

Closed mradovcic closed 4 years ago

mradovcic commented 4 years ago

Hi, I've been trying to use this library in project I'm working on and it all went fine while I was running it only on Windows. PDF looked great images were shown properly etc. But when I run it on my Ubuntu 19.10 PDF it generates looks very bad. Elements aren't positioned properly, sizes don't match those on PDF generated on Windows machine, images aren't shown. I also get these errors in the console output


QSslSocket: cannot resolve CRYPTO_set_id_callback
QSslSocket: cannot resolve CRYPTO_set_locking_callback
QSslSocket: cannot resolve sk_free
QSslSocket: cannot resolve sk_num
QSslSocket: cannot resolve sk_pop_free
QSslSocket: cannot resolve sk_value
QSslSocket: cannot resolve SSL_library_init
QSslSocket: cannot resolve SSL_load_error_strings
QSslSocket: cannot resolve SSLv3_client_method
QSslSocket: cannot resolve SSLv23_client_method
QSslSocket: cannot resolve SSLv3_server_method
QSslSocket: cannot resolve SSLv23_server_method
QSslSocket: cannot resolve X509_STORE_CTX_get_chain
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
QSslSocket: cannot resolve SSLeay
QSslSocket: cannot call unresolved function CRYPTO_num_locks
QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function sk_num
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_library_init

[WARN] Failed to load https://www.freelogodesign.org/Content/img/logo-samples/bakary.png (ignore)```

Project is a .netCore 3.1 ConsoleApp and I use DinkToPdf v1.0.8
vinothvkr commented 4 years ago

@mradovcic get the wkhtmltopdf library version 0.12.5 from its repository. It works in windows and ubuntu bionic with the mentioned version.