janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.98k stars 1.39k forks source link

Safari 15.6.1 (macOS catalina) could not display pdf file properly. #3118

Open drzchang opened 2 months ago

drzchang commented 2 months ago

Describe the bug/problem

I run a docker instance (linuxserver/calibre-web:0.6.23-ls281), and the pdf file content cannot display properly (nothing displayed) in Safari 15.6.1 (macOS catalina) while Chrome work well in the same MacBook pro. This problem not only exist in this version, but also the previous versions (0.6.21 and 0.6.22).

I'm wondering it's related to calibre-web or linuxserver/calibre-web.

To Reproduce

Steps to reproduce the behavior:

  1. read any pdf file in browser.

Logfile

no specified log output for this problem.

Expected behavior

show pdf content.

Screenshots

Screen Shot 2024-08-06 at 9 55 26 AM

Environment (please complete the following information):

Additional context no

OzzieIsaacs commented 2 months ago

There have been reports that older Mobil OS versions aren’t working properly. Like here: https://github.com/mozilla/pdf.js/issues/18222 Could you please check if there is some error on the developers console in the browser visible?

OzzieIsaacs commented 2 months ago

And could you please check if both pdf files in the link are working/not working for you?

drzchang commented 2 months ago

There have been reports that older Mobil OS versions aren’t working properly. Like here: mozilla/pdf.js#18222 Could you please check if there is some error on the developers console in the browser visible?

Screen Shot 2024-08-07 at 11 07 30 AM

I'm not familiar with web development, so I'm not sure if this is what you are looking for.

Additional notes: I can open the same pdf file in the safari browser of my iPhone with iOS 17.6, and old safari in old macOS (catalina) cannot work.

drzchang commented 2 months ago

And could you please check if both pdf files in the link are working/not working for you?

The PDF 1 link on the page https://test2.bannersky.com/bsk-pdf-manager/ use the old version 4.3.136, it CANNOT be open.

I don't find any pdf link in this link.

The PDF 1 link on the page https://wangjingtang.com/bsk-pdf-manager/ use the old version 4.0.379, it CAN be open.

work.

OzzieIsaacs commented 2 months ago

You are right, I had a conversation a few weeks ago, there the first link also had a pdf file in it. Anyway, the first screenshot was what I was looking for, and google had a good idea what to do.

OzzieIsaacs commented 2 months ago

Please try to update to the newest nightly version. I changed the pdf reader, for me both version were working, so I'm not sure (but quit confident) that it will work afterwards

drzchang commented 2 months ago

Please try to update to the newest nightly version. I changed the pdf reader, for me both version were working, so I'm not sure (but quit confident) that it will work afterwards

Great. It works on my machine. Thanks a lot.

blog2020 commented 2 months ago

Please try to update to the newest nightly version. I changed the pdf reader, for me both version were working, so I'm not sure (but quit confident) that it will work afterwards

I also encountered the same problem with Docker container: linuxserver/calibre-web:0.6.23-ls281. I couldn’t open PDF in Chrome, Firefox, or Edge. Finally, I solved it by installing the nightly version. Thank you.

machmalpause commented 2 months ago

Fantastic ! Finally works well on an older iPad 5th gen 9.7 iOS 16.7.10. Thank you for this great work, much appreciated ! Donation is on its way ;-) BW