atom-pdf-view icon indicating copy to clipboard operation
atom-pdf-view copied to clipboard

Prompt for password on locked PDFs

Open winstliu opened this issue 10 years ago • 4 comments

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

winstliu avatar Nov 11 '15 01:11 winstliu

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.

izuzak avatar Nov 11 '15 08:11 izuzak

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

winstliu avatar Nov 14 '15 03:11 winstliu

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:

izuzak avatar Nov 14 '15 09:11 izuzak

Any update on this?

amattu2 avatar Oct 15 '20 21:10 amattu2