izuzak / atom-pdf-view

Support for viewing PDF files in Atom.
https://atom.io/packages/pdf-view
MIT License
106 stars 30 forks source link

Prompt for password on locked PDFs #92

Open 50Wliu opened 8 years ago

50Wliu commented 8 years ago

I'm working on password-protected PDFs currently and pdf-view doesn't seem to recognize that the PDF is locked. Instead of prompting me for a password it just opens up a blank tab. Chrome handles this correctly.

Warning in console: The provided value 'moz-chunked-arraybuffer' is not a valid enum value of type XMLHttpRequestResponseType. at pdf.worker.js:1650

izuzak commented 8 years ago

Cool idea -- thanks for opening an issue, @50Wliu. I probably won't have time to look into this anytime soon, but happy to review a pull request if someone else wants to tackle it.

50Wliu commented 8 years ago

pdf.js actually supports this...not sure why it isn't Just Working. https://github.com/mozilla/pdf.js/blob/7a8b0fb107706c2ecf5539cfdfad63b3968700d0/web/password_prompt.js

izuzak commented 8 years ago

Yeah, no idea either. If someone wants to take a look and submit a pull request -- that would be :sparkles: Thanks for sharing that link! :bow:

amattu2 commented 3 years ago

Any update on this?