Troubleshooting and FAQ
Why isn’t the PDF report item working in a Linux environment?
Reason
To use the PDF report item on a Linux machine, the libdl.so library must be available to enable access to the PdfiumNative assembly.
When running the PDF custom report item on Linux, you may encounter the following error:
TypeInitializationException: Type initializer for "Syncfusion.PdfToImageConverter.PdfiumNative" threw an exception.Solution
Follow these steps to create the libdl.so library:
-
Locate the
libdl.solibrary by running:sudo find /usr -name 'libdl.so*' -
If the
libdl.solibrary is found, no further steps are required. If it is not found, proceed to step 3. -
If a different version such as
libdl.so.2is found, create a symbolic link namedlibdl.soin the located directory by running:sudo ln -s /usr/lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so -
Verify that the symbolic link was created successfully by running:
ls -l /usr/lib/x86_64-linux-gnu/libdl.soThe output should be:
/usr/lib/x86_64-linux-gnu/libdl.so -> /usr/lib/x86_64-linux-gnu/libdl.so.2
Note: If
libdl.so.2is found in multiple locations, create the symbolic link in the/usr/lib/x86_64-linux-gnudirectory. If it is not found there, use/usr/lib64. Otherwise, create the symbolic link in the directory wherelibdl.so.2is located. Iflibdl.so.2is not found, check forlibdl.so.2.1or any other available version.