operasoftware / pdf.js

PDF Reader in JavaScript
Apache License 2.0
20 stars 4 forks source link

Cannot be used to view locally-stored PDF files #12

Closed MaxBarraclough closed 10 years ago

MaxBarraclough commented 10 years ago

If I download a .PDF file to disk, then drag-and-drop it into Opera, then PDF.js is not used. Instead, Opera 'downloads' the file to my Downloads folder.

Rob--W commented 10 years ago

Did you allow access to file URLs? Visit the extensions page (Ctrl + Shift + E) and make sure that the following checkbox is checked:

Allow access to file URLs

MaxBarraclough commented 10 years ago

I didn't notice that tick-box - that's fixed it.

It's unintuitive that the default is for this to be disabled. Is this up to the plugin, or the Opera browser itself?

Rob--W commented 10 years ago

It's up to the browser. Chrome has the same limitations.