Exception when Word to PDF on Linux

I am not able to Generate DOC to PDF.

Azure, Linux app service
ASP.NET Core 3.1

I have installed every combination of the below. This is the current deployment. The following packages are installed:

    <PackageReference Include="SkiaSharp" Version="1.68.3" />
    <PackageReference Include="SkiaSharp.Linux" Version="1.59.3" />
    <PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="1.68.3" />
    <PackageReference Include="Syncfusion.DocIO.Net.Core" Version="18.1.0.54" />
    <PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="18.1.0.54" />
    <PackageReference Include="Syncfusion.Pdf.Net.Core" Version="18.1.0.54" />

Exception:
The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory 

8 Replies

MR Manikandan Ravichandran Syncfusion Team May 29, 2020 06:21 PM UTC

Hi Tony,

Thank you for contacting Syncfusion support.

We are facing some complexities to reproduce the reported problem at our end. Currently, we are checking on this problem with high priority and will update you with more details on 1st June 2020

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran



MR Manikandan Ravichandran Syncfusion Team June 1, 2020 03:21 PM UTC

Hi Tony,

Thank you for your patience.

We have reproduced the reported exception with “SkiaSharp.SKImageInfo exception while converting Word document to PDF” and we have found this issue occurs due to the missing of libskiasharp dll in the azure environment. We have reported this issue to Skiasharp team. We can finalize the issue, based on the SkiaSharp team updates.

We will follow the below link to know the status of the issue and keep trying out the solutions provided by SkiaSharp team.
https://github.com/mono/SkiaSharp/issues/1312

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran
 



TB Tony Basallo June 2, 2020 01:50 AM UTC

The GitHub issue has been closed with a response Please review and provide feedback.

FYI - the package mentioned in the GitHub response is included in my project, I'm not sure if it's included in your repo.


MR Manikandan Ravichandran Syncfusion Team June 2, 2020 06:32 PM UTC

Hi Tony,

Thank you for your update.

We have tried the suggestion given by the Skiasharp team. But, now we have faced another issue. We have reported the same to skiasharp team. Once, the skiasharp team update the solution for this issue, we will update with more details.

We will follow the below link to know the status of the issue and keep trying out the solutions provided by SkiaSharp team.
https://github.com/mono/SkiaSharp/issues/1312

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran



TB Tony Basallo July 9, 2020 01:40 AM UTC

Hi, can I get an update on this item?


MR Manikandan Ravichandran Syncfusion Team July 9, 2020 05:28 AM UTC

Hi Tony,

Thank you for your update.

We are continuously follow the following link to know the status of the issue and keep trying out the solutions provided by SkiaSharp team. Once the reported issue resolved by the Skiasharp team, we will check and update you the details.

https://github.com/mono/SkiaSharp/issues/1341

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran



JU Jaliya Udagedara September 17, 2020 12:01 PM UTC



MR Manikandan Ravichandran Syncfusion Team September 18, 2020 06:39 PM UTC

Hi Jaliya,

Thank you for your update.

We have checked your update in Skiaharp issue report and we glad to know the reported issue resolved in your end. We have already checked the suggestion with “SkiaSharp.NativeAssets.Linux” by Skiasharp team and it is working fine without any issues in our end.

Please refer the below link to know more about Word to PDF conversion 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

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran 


Loader.
Up arrow icon