TuesPechkin unable to load DLL 'wkhtmltox.dll'

前端 未结 8 824
我在风中等你
我在风中等你 2020-12-11 16:14

I\'ve been using TuesPechkin for some time now and today I went to update the nuget package to the new version 2.0.0+ and noticed that Factory.Create() no longer resolved, s

相关标签:
8条回答
  • 2020-12-11 16:40

    If you are getting this error -> Could not load file or assembly 'TuesPechkin.Wkhtmltox.Win64' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    In Visual Studio Go to -

    Tools -> Options -> Projects and Solutions -> Web Projects -> Use the 64 bit version of IIS Express for web sites and projects.

    0 讨论(0)
  • 2020-12-11 16:44

    Here is AnyCpu version, also support iis-base or winform application

    using TuesPechkin.Wkhtmltox.AnyCPU;
    ...
    var converter = PDFHelper.Factory.GetConverter();
    var result = converter.Convert(This.Document);
    

    Reference : https://github.com/tloy1966/TuesPechkin

    0 讨论(0)
提交回复
热议问题