QupZilla / qupzilla-plugins

Plugins for QupZilla browser
http://www.qupzilla.com
34 stars 22 forks source link

PDF Viewer plugin #7

Open pejakm opened 11 years ago

pejakm commented 11 years ago

Originally requested by kloun here.

https://github.com/mozilla/pdf.js

mithat commented 9 years ago

I would like to +1 this because if you have Netscape plugins enabled, some PDFs seem to insist on opening in an embedded renderer. For example, on my system, http://www.vishay.com/docs/82490/tsop321.pdf opens in a browser tab, which renders only a dark grey background. However, http://www.publishers.org.uk/_resources/assets/attachment/full/0/2091.pdf does the expected thing--which is to open a prompt for opening or saving.

When I view the source code for the former, I see:

<html>
  <body marginwidth="0" marginheight="0" style="background-color: rgb(38,38,38)">
    <embed width="100%" height="100%" name="plugin" src="http://www.vishay.com/docs/82490/tsop321.pdf" type="application/pdf">
  </body>
</html>

When I curl the same URL, I get what appears to be a PDF:

%PDF-1.4
%<E2><E3><CF><D3>
2 0 obj
<</Length 19558/Filter/FlateDecode>>stream
x<9C><ED ...
sydneyjd commented 8 years ago

THis is an old issue, but this is one that i would give the one-up vote to as well. Aparently ive been spoiled in the past by having PDF files opened in my browser, but in my honest opinion the biggest benefit is that i don't have to download every single PDF file to my downloads folder to view it, which adds up to be quite a few quite quickly. But i also do see the point where it could be quite hard on the browser, etc.

GreenLunar commented 8 years ago

You might want to look into JsFile.

https://addons.mozilla.org/firefox/addon/easydocs/ https://github.com/jsFile/jsFile https://jsfile.github.io/jsFile/

BlauerHunger commented 6 years ago

Using the okular kpart for this might also be an idea