problem while saving excel to pdf on cloudfoundry linux

Hi,


I'm working on an asp.net core 3.1 app hosted on cloud foundry linux environment. My app involves creating an excel, and saving it as xlsx, csv and pdf. When i deploy it on cloud foundry, xlsx and csv files are generated successfully, but when i try to save it as pdf, i encounter the following exception:


[41m[30mfail[39m[22m[49m: SyncfusionExcel.Controllers.ExcelController[0]2021-11-02T12:05:27.918+05:30 [APP/PROC/WEB/0] [OUT] 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


Also, I have developer rights only, so, can't install the libs using docker file.

I'm using dotnet core build pack and apt buildpack for cloud foundry.

libgdiplus is already included in the dotnet core build pack, and i've tried installing libc6-dev library, but it doesn't help. Can you please suggest me a way out?



1 Reply

KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team November 3, 2021 11:51 AM UTC

Hi Gurdeep, 

Greetings from Syncfusion. 

We suspect that libSkiaSharp might be missing from your project and hence you are facing this issue. We request you to go though the below link for information regarding adding libSkiaSharp in Linux project, for Excel to PDF conversion. 

Kindly try and let us know if this helps. 

Regards, 
Keerthi. 


Loader.
Up arrow icon