HakanL / WkHtmlToPdf-DotNet

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
GNU Lesser General Public License v3.0
378 stars 67 forks source link

In Linux CentOS 7, there was an error: Unable to load native library. The platform may be missing native dependencies (libjpeg62, etc). Or the current platform is not supported. #113

Closed EwenGao closed 1 year ago

HakanL commented 1 year ago

Most likely a library dependency is missing, see the other issues here for suggestions.

StockDave commented 1 year ago

i have the same issue, did u find something about it?

this is the log: Unhandled exception. System.NotSupportedException: Unable to load native library. The platform may be missing native dependencies (libjpeg62, etc). Or the current platform is not supported

And this my platform image

HakanL commented 1 year ago

The issue is exactly what the error message indicate, you're missing some native dependencies (could be libjpeg62, or any other). Since this project is just a .NET wrapper for the native library, when we try to load the native library (wkhtmltopdf), if it's missing any of its dependencies then we're just getting an error back (in .NET world) saying basically "failed to load".