Skip to content

Get syncfusion pdf viewer working in packaging or alternative pdf viewers? #526

@gjwgit

Description

@gjwgit

Describe the Bug

Syncfusion is being used to view pathology PDF docs. It is a nice viewer but need to confirm if it is open source licensed. If not then this task is to identify an alternative PDF viewer.

If staying with syncfusion then need to resolve this: when building Linux packages (deb or snap) that include syncfusion, the resulting package can not load the libpdfium library (syncfusion_pdfview_linux). It is not clear yet why. A local build works just fine getting the library from /home/user/git/github/anusii/healthpod/linux/flutter/ephemeral/.plugin_symlinks/syncfusion_pdfviewer_linux/linux/include/pdfium/x64/bin/libpdfium.so but a github workflow build does not find that path

wget https://solidcommunity.au/installers/healthpod_amd64.deb
dpkg --install healthpod_amd64.deb
healthpod

This results in:

healthpod: error while loading shared libraries: libpdfium.so: cannot open shared object file: No such file or directory

Checking libraries:

$ ldd /usr/bin/healthpod
        linux-vdso.so.1 (0x0000795df20ef000)
        libaudioplayers_linux_plugin.so => /usr/lib/healthpod/lib/libaudioplayers_linux_plugin.so (0x0000795df20d4000)
        libfast_rsa_plugin.so => /usr/lib/healthpod/lib/libfast_rsa_plugin.so (0x0000795df20cf000)
        libflutter_secure_storage_linux_plugin.so => /usr/lib/healthpod/lib/libflutter_secure_storage_linux_plugin.so (0x0000795df20b1000)
        libscreen_retriever_linux_plugin.so => /usr/lib/healthpod/lib/libscreen_retriever_linux_plugin.so (0x0000795df20ab000)
        libsyncfusion_pdfviewer_linux_plugin.so => /usr/lib/healthpod/lib/libsyncfusion_pdfviewer_linux_plugin.so (0x0000795df20a4000)
        liburl_launcher_linux_plugin.so => /usr/lib/healthpod/lib/liburl_launcher_linux_plugin.so (0x0000795df209b000)
        libwindow_manager_plugin.so => /usr/lib/healthpod/lib/libwindow_manager_plugin.so (0x0000795df208f000)
        libflutter_linux_gtk.so => /usr/lib/healthpod/lib/libflutter_linux_gtk.so (0x0000795df1000000)
        libgtk-3.so.0 => /lib/x86_64-linux-gnu/libgtk-3.so.0 (0x0000795df0800000)
...
        libgstbase-1.0.so.0 => /lib/x86_64-linux-gnu/libgstbase-1.0.so.0 (0x0000795defb7c000)
        libgstreamer-1.0.so.0 => /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0 (0x0000795def69d000)
        libsecret-1.so.0 => /lib/x86_64-linux-gnu/libsecret-1.so.0 (0x0000795defb1e000)
-->     libpdfium.so => not found
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x0000795df0fbb000)
...
  • Why is the library not being found
  • Is syncfusion licesensed for OpenSource?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions