-
-
Notifications
You must be signed in to change notification settings - Fork 886
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
PDF not rendering despite onLoadSuccess triggered #360
Comments
Any errors in the console? |
@wojtekmaj. No no errors on console. It might be a stupid thing. But its driving me crazy. There is nothing indicating that something goes wrong. The on error functions are not being called either. |
I have a similar issue. Instead of rendering the Pdf it says "Failed to load PDF file"
|
Have the same issue. No errors at all. Some of pdf are rendered correctly, some not just white canvas instead of pages |
I have the same issue and it is very. very. frustrating. |
@AmyshaDixon yeah, I decided not to render anything. |
@acollazomayer I ended up using react-pdf-js instead just until this issue gets fixed. It doesn't have all the bells and whistles that this one does, but it gets the job done in the meantime. |
If the issues mentioned are not helpful at all, and you don't see any errors in the console, or any network errors, check this Wiki entry: If that fails too, I'm going to need a minimum reproduction on something like CodeSandbox. |
If it's of any help to anyone, I had the exact problem - no errors, but nothing rendering. Added
And it worked. Thanks @wojtekmaj for the links |
This comment has been minimized.
This comment has been minimized.
index.js:1375 Error: Setting up fake worker failed: |
This comment has been minimized.
This comment has been minimized.
@jaquesgrobler Thanks, that worked. |
it occurs when we do ssr at backend and then server the page |
yes adding inside component works like a charm |
I have tried everything, pageNumber={1} etc. No errors, nothing renders :( |
@tskweres add this one import { pdfjs } from 'react-pdf'; |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days. |
This issue was closed because it has been stalled for 14 days with no activity. |
that works for me, thanks |
Hi Im having a problem. I load a pdf with this library. The onLoadSuccess is triggered. But the Document does not render.
I dont know what else to do. I just copy the example page.
Thanks
The text was updated successfully, but these errors were encountered: