How to prevent Chrome from downloading PDF files automatically and instead of that, show them online with internal PDF viewer?
Google-chrome – How to make Google Chrome open PDFs in the internal PDF viewer instead of downloading them automatically
google-chromepdf
Related Question
- Google-chrome – How to automatically open “saved” pdfs in system viewer on chrome
- Google-chrome – Open PDFs in Adobe instead of in Google Chrome
- Google-chrome – How to view pdf and doc files in Google Chrome instead of downloading them
- Google-chrome – How to reload the Chrome PDF Viewer in Google Chrome
- Google-chrome – How to force Google Chrome to only download PDF but not open them
- Ubuntu – downloaded pdf automatically opens in default system pdf viewer in chrome ubuntu
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 sendsContent-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.