Replies: 3 comments 8 replies
-
We have a common issue and I haven't see any thread that offers solutions even from the author. |
Beta Was this translation helpful? Give feedback.
-
I seem to have found a solution to this issue, and it mostly makes things better, also rendering performance seems to have improved. Note that this solution is untested as of now but seems okay so far. It doesn't seem like there was an upgrade guide attached to the release of pdfjs 3.0, so perhaps this change is safe. I modified package.json with the following, which forces react-pdf to use the latest version of pdfjs:
|
Beta Was this translation helpful? Give feedback.
-
This is going to be addressed with #1325 but as a breaking change, will be released with a future breaking version. |
Beta Was this translation helpful? Give feedback.
-
Hello,
My team is attempting to release an IOS mobile app in which we have a "stacked" document view consisting of many pdfs with ability to scroll from one to another, and some editing experience we've built on top.
Our app works great on desktop, and has for some time, but has strange crashing / page reloading issues when scrolling quickly between many documents or zooming in after scrolling, specifically within IOS Safari (15+). The issue does seem to get worse with more documents, so a potential solution on our end is to limit the number of documents rendered, but we fear large documents may still have issues and would prefer to keep the current UX.
These issues to me point to safari memory management issues, but this is very difficult to debug as there are no crash logs and the safari developer console does not show any errors.
We have virtualization built in, and are at most rendering 3-4 pages at a time, so we don't think there's anything we're doing wrong besides possibly loading so many documents 🙃
In the latest release of pdfjs it seems that many features and optimizations. Is there an experimental branch we could try out the new version to see if it fixes our issues?
What's your perceived level of difficulty of upgrading if not?
Also, are there any reports you've seen similar to our issue that you might suggest?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions