-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Saving password protected PDF file without inputting the password saves an HTML page instead #15085
Comments
My suspicion is that this actually goes wrong somewhere in the platform-code, when we try to download a PDF document from a URL-string that does not (clearly) end with Until the PDF document has loaded, which in this case requires entering a password, downloading triggers the following code-paths through the viewer/platform code:
Possibly a stupid suggestion, but: Maybe we could utilize the newly added /cc @calixteman |
Thank you for the in-depth look! I'm not at all familiar with web development or JavaScript, so I'm not sure I can help much. |
I just tested in nightly, beta and release. I can reproduce the issue in either beta and release but not in nightly. |
Attach (recommended) or Link to PDF file here:
05 - Amplificador diferencial.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
The downloaded file is the PDF file.
What went wrong? (add screenshot)
The downloaded file is an HTML file (but with the name and file extension of the PDF file) that appears to be equivalent to saving the current page via browser functionality.
This is especially annoying because I have password protected PDF files on Google Classroom, and the download button from their UI makes the PDF open in PDF.js automatically, and instead of simply saving it from there, I need to input the password first.
The text was updated successfully, but these errors were encountered: