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

google-chromepdf

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

Best Answer

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.