xthursdayx / yacreaderlibrary-server-docker

Docker image running a headless version of YACReaderLibraryServer 📦

Home Page:https://hub.docker.com/r/xthursdayx/yacreaderlibrary-server-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF Files not working

jvlk123 opened this issue · comments

I'm running on a synology docker and since I had to update the server (Got popup in android app) I can not see any of my pdf files anymore in my libraries. I asked the yacreader creator and he said that maybe the binary was build without pdf file support?

I have exactly the same configuration and exactly the same issue. After a lot of experimentation, I mamnaged to build (locally) an image with PDF support restored.

Here's a brief list of what broke PDF in the first place, and what I had to do to restore it.

  • Recently, the image was updated to use QT6.
  • QT6 breaks PDF support, so it was deactivated in the build
  • To restore PDF support, we need the additional library libpoppler-qt6
  • The baseimage is based on Ubuntu jammy (22), for which this library does not seem to exist
  • Upgrading the baseimage to Ubuntu noble (24) fixes the missing library issue (one also has to explicitly install the runtime library, or "apt-get autoremove" will remove the library from the container, and the Server will not work)
  • With the library available, one can remove "no_pdf" from the build flags and PDF support should be restored

I still need to clean up my Dockerfile, and check if I missed something in the description, but that should be one possible fix.

Could you maybe share your image, upload it somewhere?
I have no clue how to build my own image so I would be very grateful if I could use yours.

Sure, here's a link to my unofficial image: https://mega.nz/file/qyoW3DpA#f3qU8EskuhrJqscv3eSWKyqABU0k1quvYu97AJ5tFbI
It is based on the "unarr/amd64" build, you can upload it to Synology's Container Manager, then you will need to generate a new Container (and watch out for the ports if you still have a container with the regular image sitting around somewhere, two containers cannot use the same port).

And here is the Dockerfile (sorry for not opening a PR, but I do not fully understand the current state of the multiplatform build and what would need to be done to apply this to all Dockerfiles).
Dockerfile.zip

Hope that helps!

Awesome, thx a lot kind sir.

Edit: Just tried your image but i still can't see pdf files?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.