On Monday, 18 March 2019 at 15:23:46 UTC, DFTW wrote:
On Saturday, 16 March 2019 at 07:27:43 UTC, FreeSlave wrote:
On Friday, 15 March 2019 at 21:48:50 UTC, DFTW wrote:
What am I missing here?
Maybe the terminal and your utility you run wkhtmltopdf from
have different environment?
I guessed so, I've tried set the env as well:
enum env = ["LD_LIBRARY_PATH" :
"/path/to/wkhtmltox-0.12.4_linux-generic-i386/wkhtmltox/lib"];
import std.process : execute, Config;
auto conv = execute([app, html,pdf],
env,
Config.newEnv,
size_t.max,
workingDir);
but that doesn't work either.
My assumption is, the issue is not related to D or the working
dir. It is more a linux thing. Maybe you also try function
executeShell. Also did you have a look e.g here
https://www.google.com/amp/s/www.cyberciti.biz/faq/debian-ubuntu-linux-wkhtmltopdf-error-while-loading-shared-libraries-libxrender-so-1/amp/
Kind regards
Andre