SfPdfViewerServer on linux with docker not working

Hello,


The component SfPdfViewerServer is not working on linux and docker, when selecting the nuget package:

Syncfusion.Blazor.PdfViewerServer.Linux

It hangs while loading file.


On the other hand, with the same code, if I select Syncfusion.Blazor.PdfViewerServer.Windows it works perfectly.


Both versions are 20.1.0.58


Any workaround for this problem? Thank you.

Dr. Pedro Manso



4 Replies

SK Shamini Kiruba Sobers Syncfusion Team June 7, 2022 04:53 PM UTC

Hi Dr Pedro,


We are setting up the environment to check the reported issue in Linux with Docker. We will provide the details on or before June 9, 2022.


Regards,

Shamini



DP Dr Pedro Manso June 8, 2022 07:22 AM UTC

Fine, thank you.


On the other hand we can stop talking in this forum and continue only in the ticket. I insert here the link if any one has the same problem.


[Ticket-384063] SfPdfViewerServer on linux with docker not working | Syncfusion Support



PS Pawel Sydorow June 27, 2022 08:56 AM UTC

Hi, 

I have the same problem. 

Can you share soluction?


Best

Pawel



VS Vasugi Sivajothi Syncfusion Team June 29, 2022 12:50 AM UTC

Hi Pawel,


To work with PDFIUM in the LINUX environment we need to add the following commands in the docker file to install dependencies. 


RUN ln -s /lib/x86_64-linux-gnu/libdl-2.24.so /lib/x86_64-linux-gnu/libdl.so 

# install System.Drawing native dependencies

RUN apt-get update && apt-get install -y --allow-unauthenticated libgdiplus libc6-dev libx11-dev 

RUN ln -s libgdiplus.so gdiplus.dll 


Need to execute the following command to install the dependencies. 


 

sudo apt install libc6-dev
sudo apt install libgdiplus  


Could you please confirm whether the dependencies are properly installed on your end and let us know if the issue resolves or not? If not, please share the error details. This will be helpful to assist you better.



Regards,

Vasugi.



Loader.
Up arrow icon