-
-
Notifications
You must be signed in to change notification settings - Fork 915
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
Browser freezes when rendering this pdf #286
Comments
I had the same problem! Have a solution? |
Checked in our test suite and everything seems to be in order. Check the same page if it's working for you. If the rendering is smooth on the test suite, there might be something wrong with your implementation, e.g. you're not using worker. |
@wojtekmaj I'm using CRA 2 and I followed your CRA setup.
The rest of the code is your example code with navigation. When i navigate there is a noticeable delay (only when i press the previous button). Even in the test suite. Also, when i pass height prop, it doesn't get rendered completely.
What gets rendered are just the boxes as shown below. |
Regarding "Uncaught Error: Requesting object that isn't resolved yet" - this is being logged under #275 and mozilla/pdf.js#4244. Have you checked if the PDF renders any faster in our test suite? If it's equally slow, then there's nothing we can do. |
I'm closing this issue to give other issues more visibility. If you still need assistance with this matter, please do not hesitate to reply and I'll reopen. Happy coding! |
This comment has been minimized.
This comment has been minimized.
@tanmay-cs13 That's not React-PDF, that's diegomura's react-pdf/renderer I believe. |
Sir can you provide this test-suite source code, I also stuck in rendering big file in my case I want to show PDF from long base64 encoded string I got error as
code
The base64 encoded string please help |
Test suite source code is here in the repository: https://github.com/wojtekmaj/react-pdf/tree/master/test |
sir, what cause the error "RangeError: Maximum call stack size exceeded" while render PDF from base64 string. I fellow the test suit code which works find in case of pdf- < 5MBs 20 to 30 pages. |
I'd need to see the call stack of this error message you're facing to be able to tell you more. |
I have the same problem while rendering a 272pages PDF file. My react App freezes on rendering and after 5 minutes the App unfreezes. Is thera a way to use a Promise in order to wait at the rendering finishes of PDFDownloadLink? |
Are you rendering the whole PDF at once? Because this sounds like you're trying to do exactly that, which can be a bad idea on an army of Apple M1s. |
I have an issue with a single 3 page PDF rendering slowly on page change. @wojtekmaj thanks for the note about the test-suite. Didn't realize that was a thing. Through it, I discovered that the text-layer was the issue for me. Turning that off made things instant! Guess this PDF has some wild stuff going on under the hood. Hope that helps @tonsquemike, @SevenSinS02. |
Before you start - checklist
Description
The browser freezes when rendering this pdf. It's small in size while there are other pdf's that are way bigger in size that renders smoothly.
Steps to reproduce
Steps to reproduce the behavior:
pdf
Expected behavior
What you expected to happen?
Smooth rendering of the pdf.
Additional information
If applicable, add screenshots (preferably with browser console open) and files you have an issue with to help explain your problem.
Environment
The text was updated successfully, but these errors were encountered: