Closed tschramme86 closed 1 month ago
Hi @tschramme86,
thanks for opening this issue! You'll have to add these lines to your project file:
<ItemGroup>
<NativeFileReference Include="$(SkiaSharpStaticLibraryPath)\3.1.12\simd\libSkiaSharp.a" />
</ItemGroup>
I'll fix this in a future release of PDFtoImage so this will be set by a props file automatically.
Thanks for the very quick response @sungaila, really appreciate! With the additional lines in the project file it works :)
@tschramme86 PDFtoImage 4.1.1 has been released, where this problem has been fixed. You can remove the <NativeFileReference />
once you update to this version.
Please reopen this issue if it isn't working as expected.
PDFtoImage version
4.1.0
OS
Windows
OS version
Windows 11 24H2
Architecture
x64
Framework
.NET (Core)
App framework
Blazor WebAssembly
Detailed bug report
It is mentioned that this Library works also in Blazor WebAssembly projects. I tried but always get this exception when calling
PDFToImage.Conversion.SavePng
method:System.DllNotFoundException: libSkiaSharp
Steps to reproduce:
PDFtoImage
packageProject file for reference:
Result When running the project and clicking the button on the page to call the above code, the
SavePng
function throws the following exception: