PdfToImageConverter

The Docker deployment I am using has no issues with my own computer's Mac. When published to the server, the Docker environment is not working



024-07-06T07:41:10.513747560Z Connection id "0HN4THS0HBSH9", Request id "0HN4THS0HBSH9:00000001": An unhandled exception was thrown by the application.

2024-07-06T07:41:10.513863329Z System.TypeInitializationException: The type initializer for 'Syncfusion.PdfToImageConverter.PdfiumNative' threw an exception.

2024-07-06T07:41:10.514174138Z ---> System.DllNotFoundException: Unable to load shared library 'libdl' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:

2024-07-06T07:41:10.514333009Z /app/runtimes/linux-x64/native/libdl.so: cannot open shared object file: No such file or directory

2024-07-06T07:41:10.514584956Z /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.6/libdl.so: cannot open shared object file: No such file or directory

2024-07-06T07:41:10.514768133Z /app/libdl.so: cannot open shared object file: No such file or directory


1 Reply

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team July 9, 2024 11:42 AM UTC

Hi Xu,

The reported issue occurs when the Pdfium dependency is not installed in your environment. Please follow the steps below to resolve this issue.

 

If you are using the PDF Viewer with Docker in .NET 6.0 framework, please refer to the following Dockerfile and modify your Dockerfile accordingly:

 

 

If you are using the PDF Viewer with Docker in .NET 8.0 framework, please refer to the following Dockerfile and modify your Dockerfile accordingly:

 

 

Kindly try this and If you are still facing any issues, please provide the following details, which will help us analyze further and provide assistance:

 

  • .NET framework versions.
  • The NuGets used in your application.
  • The code snippet and sample where the reported issue occurred.
  • Please provide the docker file.

Loader.
Up arrow icon