Hi
LastCodeDE,
Thank
you for contacting Syncfusion support.
We
suspect that the problem might be due to missing of required NuGet packages in
your application.
1.
If
you are performing Word to PDF conversion in Linux environment means, could you
please provide your confirmation on whether the SkiaSharp.Linux helper NuGet
package is added properly in your application as per mentioned in the documentation.
2.
If
you are using Linux in Docker container means, please ensure at your end
whether the below line is added in the Dockerfile of your application to
resolve the problem.
|
RUN
apt-get update && apt-get install -y libfontconfig1 |
If
the issue is still reproduced, then kindly share us your working Essential Studio
version and issue reproducing sample which will be helpful for us to provide you
the prompt solution.
Regards,
Prakash
Kumar
1. Hi Jose,
Thank you for your update.
We suspect the issue may occur due to any of the following reason:
1. SkiaSharp initialization problem in server.
2. Publishing the ASP.NET Core application in Self- contained mode.
We suggest to use below steps to overcome this reported issue:
1. Check whether production machine have proper .NET Core runtime installed.
2. Check Visual C++ Redistributable for Visual Studio 2015 installed in the production which is need to run SkiaSharp.
Download link:
https://www.microsoft.com/en-us/download/details.aspx?id=53587
Download link for 2017 VC++:
https://visualstudio.microsoft.com/downloads/If the issue still persists, to resolve this problem, we recommend copying the libSkiaSharp manually from the SkiaSharp NuGet package into published folder.
1. Publish the ASP.NET Core application with SkiaSharp dependency in Self-Contained mode.
2. Download SkiaSharp v1.59.3 NuGet package from here.
3. Unzip the skiasharp.1.59.3. nupkg.Please refer the below tabular column to get the libSkiaSharp for corresponding target runtime.Copy libSkiaSharp from below location in SkiaSharp NuGet package into published folder for each target runtime:win-x86 — runtimes\win7-x86\nativewin-x64 — runtimes\win7-x64\nativeosx-x64 — runtimes\osx\native
Please let us know whether the suggested solution resolves the issue in your end.
Regards,
Vijayasurya A
System.DllNotFoundException: Unable to load DLL 'libSkiaSharp' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E) at SkiaSharp.SkiaApi.sk_colortype_get_default_8888() at SkiaSharp.SKImageInfo..cctor()
|
win-x86 |
runtimes\win7-x86\native |
|
win-x64 |
runtimes\win7-x64\native |
|
osx-x64 |
runtimes\osx\native |
I am facing the same issue after deploying the asp.net core app on server, can you please help me to resolve this issue?
Version :- 20.1.0.47
* Install-package Syncfusion.Presentation.Net.Core
* Install-package Syncfusion.PresentationRenderer.Net.Core
* Install-package Syncfusion.SkiaSharpHelper.Net.Core
I am doing deployment using Visual studio publish option to deploy on Azure Web app server
sever operating system is Linux.
In local its working fine
Hi Ankush,
From the given details, we suspect that you have missed to install the
dependent NuGet packages to perform Presentation to PDF conversion in your
application.
|
Version |
NuGet packages to install |
|
From v20.1.0.x |
Similar to DocIO, please find the NuGet packages
to be installed to perform Presentation to PDF conversion in Linux OS from
below,
https://help.syncfusion.com/file-formats/docio/faq#what-are-the-nuget-packages-to-be-installed-to-perform-word-to-pdf-conversion-in-linux-os
Could you please install the above mentioned
NuGet packages in your application and let us know whether the reported issue
gets resolved.
If you still facing the issue means, then kindly
provide us the complete runnable sample along with input Word document which
will helpful to provide you the appropriate solution at the earliest.
Similar to DocIO, please refer the below link to know about how to convert Presentation
to PDF in Azure App service on Linux,
https://www.syncfusion.com/kb/11888/how-to-convert-word-document-to-pdf-in-azure-app-service-on-linux
Regards,
Suriya Balamurugan.