Skip to content
New issue

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

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

Already on GitHub? # to your account

PDF reader does not work as expected #3213

Open
dr400 opened this issue Nov 1, 2024 · 3 comments
Open

PDF reader does not work as expected #3213

dr400 opened this issue Nov 1, 2024 · 3 comments

Comments

@dr400
Copy link

dr400 commented Nov 1, 2024

Hi everyone,

Sth strange in the neighborhood ... of calibre-web (latest version hosted on docker container)

When reading pdf or epub from the site itself, page opens and download starts but after a few seconds, it stops and only a few pages of the pdf or epub are available (others are "present" but blank or black).

Repeating the process can sometime lead to a complete and satisfactory achievement but not always, even rarely.

I've noticed also that the non-completion (sorry my English) of the process will lead the browser to try to redo it, thus the document is loaded pieces by pieces.

TBN : the download button works strangely too. Refresh has to be commanded many times before it actually starts. (web page not found and then, after a quite numerous refreshment of the page, miraculously it downloads the pdf/epub)

Was working flawlessly with previous versions.
Thx for your input.

image

@OzzieIsaacs
Copy link
Collaborator

The pdf is loaded in pieces page by page. Some people thought this would be a good idea.
Epubs don't show this behavior. Be patient. Your screenshot shows that the next page is loaded.

pdf_reader.mp4

@OzzieIsaacs
Copy link
Collaborator

I can't reproduce the behavior for the download. I think this is a problem in your installation

@dr400
Copy link
Author

dr400 commented Nov 2, 2024

Enregistrement.2024-11-03.102812.mp4

log.txt

The pdf is loaded in pieces page by page. Some people thought this would be a good idea. Epubs don't show this behavior. Be patient. Your screenshot shows that the next page is loaded.

pdf_reader.mp4

Thanks for your reply.

The screenshot shows that pages are loaded randomly. Previous versions were loading the docs straight and in one shot ! See video (it takes ages to display further pages if none at all). I have to refresh page otherwise scrolling down will not refresh on its own.
I'm not complaining, I just want to make sure that i'm not missing sth.
My version of calibre-web is latest.

The calibre library (books shelves) is in a folder within its own container (no sharing on remote hdd). The database is in the very same folder.

To avoid error 500 when calibre (library and/or database) is updated and calibre-web user is consulting calibre library, I'm copying the database (only the metadata.db file) in the calibre-web own container when calibre library is updated. Calibre library being shared btw calibre and calibre-web containers.

Therefore, calibre-web is using calibre library but its own metadata.db file (as this functionnality is available in the calibre-web settings).

Am I doing sth wrong here ? Do you preconise another process ?

One more question, when calibre library is updated, will calibre-web automatically take new addings into account (considering that the metadata.db is updated as well) ? Or does it have to be reloaded (stop and restart cps.py) ?

@OzzieIsaacs OzzieIsaacs changed the title "Read" version of PDF or epub (for inside reading) does not work as expected PDF reader does not work as expected Nov 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants