-
Notifications
You must be signed in to change notification settings - Fork 234
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
Error with onDocumentAskPassword #1638
Comments
Are you using range requests? If so, there is known bug about this, just disable the range requests, by adding this to the viewer element.
I hope it helps somehow |
Can you explain more clearly? I don't know how to add it. |
After a while, I tried to add something like this, It works well, but I don't know why.
|
The bug is in the component showing protectedview (view with input and unlock button) Disabling the ranges or streams, leave the secure screen to use basic fetch (2xx http success responses) I am glad it helped you! |
I have an encrypted pdf file and need to open it with a password. I follow the example at https://react-pdf-viewer.dev/examples/submit-the-password-programmatically/ but pdf only shows up a few times when I visit the page. For example, if I visit the website 10 times, about 1-2 times the pdf page will appear, the other times it will be in an infinite loading state.
Can anyone help me? Thank you!
Here is my code
![image](https://private-user-images.githubusercontent.com/64343076/280776103-acea9ac6-8e69-4235-9d7c-7b51595c8e5b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5OTg5NTMsIm5iZiI6MTcyMzk5ODY1MywicGF0aCI6Ii82NDM0MzA3Ni8yODA3NzYxMDMtYWNlYTlhYzYtOGU2OS00MjM1LTlkN2MtN2I1MTU5NWM4ZTViLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDE2MzA1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4OGJlNmU3ODgzMzczN2NjMGZhNGIyMzMxYTc1MTk1ZmI3N2I1OTUwNjk1NTZkZWVhYTk5YmRlOTg4OTkxZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XK80gQtbd5R9SkscNsLkWXBtbUziRKjVO0FagpFjxxk)
Infinity loading state
![image](https://private-user-images.githubusercontent.com/64343076/280776272-11c2c961-d520-480a-a649-386cbdccb1d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5OTg5NTMsIm5iZiI6MTcyMzk5ODY1MywicGF0aCI6Ii82NDM0MzA3Ni8yODA3NzYyNzItMTFjMmM5NjEtZDUyMC00ODBhLWE2NDktMzg2Y2JkY2NiMWQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDE2MzA1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYwYjFhYjNmNmY3YjdhYzZlYzZlYWRhZDE3Mzk2NzhmMjE1ZDU5OGNhOGY1YmM3ZWU4NTIwMzdlYzAwMDEzOTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.a9qvhIOQi-HWi6pJGaAH6lM53LDzCFJetgsuksy-AeU)
The text was updated successfully, but these errors were encountered: