How to make Google Chrome open PDFs in the internal PDF viewer instead of downloading them automatically?

How to prevent Chrome from downloading PDF files automatically and instead of that, show them online with internal PDF viewer?

3,669 13 13 gold badges 32 32 silver badges 38 38 bronze badges asked Oct 31, 2014 at 13:02 189 1 1 gold badge 2 2 silver badges 12 12 bronze badges If you have no download managers installed, PDF Viewer works well for me. Commented Oct 31, 2014 at 13:12 I got IDM but it's desactivated Commented Oct 31, 2014 at 13:24

2 Answers 2

This is not a property of the browser, but of the headers sent by the server. If the server sends Content-Disposition: Attachment , then downloading is the right thing to to. If the server sends Content-Disposition: Inline , then displaying is the right thing to to.

If the server sends none, it is the browser, that must decide. Most browser assume inline .

Edit

Just tried it out: Current Chrome (Version 38.0.2125.111 on Ubuntu 12.04) assumes inline , so it will display, not download a PDF, if the server does not explicitly request so.