Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF Files not working #67

Open
jvlk123 opened this issue Mar 31, 2024 · 5 comments
Open

PDF Files not working #67

jvlk123 opened this issue Mar 31, 2024 · 5 comments

Comments

@jvlk123
Copy link

jvlk123 commented Mar 31, 2024

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?

@mark76
Copy link

mark76 commented Apr 24, 2024

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.

@jvlk123
Copy link
Author

jvlk123 commented Apr 24, 2024

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.

@mark76
Copy link

mark76 commented Apr 24, 2024

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!

@jvlk123
Copy link
Author

jvlk123 commented Apr 24, 2024

Awesome, thx a lot kind sir.

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

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants