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

open some pdf cost too much time #2228

Closed
buptyyf opened this issue Feb 11, 2023 · 3 comments
Closed

open some pdf cost too much time #2228

buptyyf opened this issue Feb 11, 2023 · 3 comments

Comments

@buptyyf
Copy link

buptyyf commented Feb 11, 2023

fitz open some pdf cost too much time. And the size of this pdf is only 24MB.

Open this pdf cost 10 seconds on M1 macbook pro.

And cost too much time get_toc(), get_text_blocks() and other api using this pdf. How should I check which pdf fitz parse will be slow?

Test PDF:
CB_Epx2qj2qxEqN6eV6cj2WzDbV.pdf

@JorjMcKie
Copy link
Collaborator

JorjMcKie commented Feb 13, 2023

We are investigating this problem.

In the meantime:
Do you have additional information, like is there a pattern? The example is generated by the calibre e-book manager - can you confirm this generally happens in this case?
If there is urgency, I can recommend ways to circumvent the problem in the meantime.

@buptyyf
Copy link
Author

buptyyf commented Feb 14, 2023

We are investigating this problem.

In the meantime: Do you have additional information, like is there a pattern? The example is generated by the calibre e-book manager - can you confirm this generally happens in this case? If there is urgency, I can recommend ways to circumvent the problem in the meantime.

I have no more information so far. This pdf is uploaded by other user who also don't have additional info.

@JorjMcKie
Copy link
Collaborator

JorjMcKie commented Feb 14, 2023

@buptyyf - the problem has been fixed. The fix will be published with the next version.
The associated bug information in MuPDF's issue system is https://bugs.ghostscript.com/show_bug.cgi?id=706412

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

No branches or pull requests

3 participants