-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
Loading spinners never go away #386
Comments
Does the same pdf work here https://vadimdez.github.io/ng2-pdf-viewer/ ? |
Ya, that's what I was not so clearly trying to convey. If I download the PDF and then go there and click "Choose file" it does work just fine. And again this particular PDF is definitely an anomaly, been a while since anyone has mentioned a PDF not loading. The only thing I can think that's different about it is the small pages, but of course it does work in your demo. Sorry, I know I'm not giving you very much to go off of. Appreciate you taking the time to look into it at all. |
I cant just input the url into your demo though because of CORS issues, have to actually download it and then Choose the file. Anything you can think of trying? Thanks |
I have the same problem. If I change zoom of pdf preview, some of these pages is loading infinitely. |
This issue could be related to #422. You can also try rendering the pdf with the base Also, you can overcome CORS issues for development purposes with https://cors-anywhere.herokuapp.com/ |
Facing the same issue in my angular 6 application. @ColinT : Thanks for the CORS issue fix. That worked! The pdf downloads fine (able to notice it in the browser's network traffic). |
This helped I was using pdf-viewer in a tab which was initialized but not visible until clicked on. I was able to make viewer working by rendering viewer only when tab with it opened by user. |
Same for me I was using bootstrap tab so I aded a *ngIf clause to render my component with the pdf-viewer to make it work and remove the infinite loading spinner. |
All the above didn't work for me and I think it might be related to #364 |
Any good fix for this issues, thanks? |
I had the same issue on our page only when viewed in 4k, fixed with the position relative parent |
Having a similar issue, when the pdf src is similar for two consecutive requests, the onloadComplete and onError methods are not fired and hence the loader does not stop. |
How to find the solution, i can not update to new angular, i am stuck on 4 |
If it helps anyone: (I'm on ng2-pdf-viewer 9.0.0, using the "breaking change css height fix")
to be
and every document renders now. |
wont work for me its on ngOnInit, or nothing for api blobs
|
For those who don't know about the above and came for an answer to the same problem, you can fix it with the info in this other issue #219, basically you need to set position relative to the inner pdf viewer component div and set the max width of the pdf-viewer class to something fixed. I did this solution because I couldn't upgrade the dependency to 6.0.0 because angular version restrictions so in hoping so no more people spend so many hours searching for a solution for this like me without upgrading the widget, here it is. |
Bug Report or Feature Request (mark with an
x
)This library has been working great for us for a while, but have come across this one pdf that only ever shows the spinning loaders (unfortunately I can't share the PDF here since it belongs to a client). (error) never fires, but (after-load-complete) and (on-progress) do. onProgress just fires one time saying the load is complete
{loaded: 63290, total: 63290}
. We are supplying the src url (something like https://attachments.hey.com/blah.pdf). One thing worth noting is if I download the PDF and then input the file to the demo it works fine. Any suggestions on things I could try with this PDF? Very much at a loss. This pdf is 3 small business cards and the pdfInfo recognizes it as such saying it has 3 pagesThe text was updated successfully, but these errors were encountered: