DinkToPdf dll not found libwkhtmltox


I am developing a .net5.0 web api and i am getting the following error while using DinkToPdf:

DllNotFoundException: Unable to load DLL 'libwkhtmltox' or one of its dependencies: The specified module could not be found. (0x8007007E)

I have followed this tutorial, with a few exceptions:

  • added the service added the service, which was not done in the tutorial

             new SynchronizedConverter(new PdfTools()));
    services.AddScoped<IPdfService, PdfService>();
  • named the services differently, but that shouldn't matter

  • installed it via NuGet instead of Install-Package DinkToPdf

  • my project is just an API, frontend is not in C#, shouln't matter sincer the error is here:

    return this._converter.Convert(htmlToPdfDocument);

Did everything else like in the tutorial.

asked on Stack Overflow Mar 26, 2021 by qlabfgerkaSmurf

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0