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.Follow these steps to create the libdl.so library:
Locate the libdl.so library by running:
sudo find /usr -name 'libdl.so*'If the libdl.so library is found, no further steps are required. If it is not found, proceed to step 3.
If a different version such as libdl.so.2 is found, create a symbolic link named libdl.so in the located directory by running:
sudo ln -s /usr/lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.soVerify 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.2Note: 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.