DinkToPdf dll not found libwkhtmltox

0

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

    services.AddSingleton(typeof(IConverter),
             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.

c#
asp.net
pdf-generation
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