I'm looking for a way to make Google Chrome always open PDFs with its internal viewer when I click a link, as opposed to downloading it to the default location. It works with most URLs, but some servers set a special header to force the file to be downloaded ("Content-Disposition: attachment;", e.g. http://www.uni-goettingen.de/en/46260.html).

What I want is the opposite of this question: Stop PDFs from displaying inside Google Chrome, or what is asked for here, but applied to Chrome: How to ignore “Content-Disposition: attachment” in Firefox

Btw., I'm running Chrome 8.0.552.0 dev on Ubuntu 10.4.

  • 1
    Would it be acceptable if the PDF is opened in Google Docs ?
    – Sathyajith Bhat
    Commented Oct 14, 2010 at 13:54
  • I think you should tag the OS because some answers appear to be working only on OSX. Commented Sep 6, 2018 at 6:24
  • @jdm Is it a definite requirement for you to open pdfs with the "internal viewer"? Can it not be another viewer in the browser window, i.e. via an extension?
    – zylstra
    Commented Mar 28, 2023 at 22:36

5 Answers 5


The "Redirector" answer was just what I was looking for, but that extension is no longer available. So I kept digging and found Modify Content-Type. It's working as I expected (PDFs open in the internal viewer despite Content-Disposition: attachment in the response headers) with a rule of:

URL Filter:       .*
Original Type:    application/.*pdf
Replacement Type: application/pdf
Disposition:      inline

Note well that this may expose you to cross-site scripting vulnerabilities, and you would be wise not to allow .* in the URL filter. Add to it only as needed.

  • 1
    I have a rule as follows that seems to work, and should be restricted to PDFs (I don't know about XSS vulnerabilities though, and anything could have a .pdf extension, so still be aware): URL Filter: https?://.*\.pdf Original Type .* Replacement Type: application/pdf Disposition: inline Commented Nov 29, 2014 at 6:01
  • Can you explain how this filter might make you vulnerable to XSS?
    – Dai
    Commented Mar 1, 2017 at 18:53
  • @EricAngell I can't get this to work, for example with this test. The values I used were ., text/xml, text/xml, inline, but it always downloads. I'm hoping to get it to display as though like this
    – Hashbrown
    Commented Mar 11, 2021 at 5:50

You can remove Content-Disposition response header using Redirector extension. Just add a rule removing Content-Disposition header. Here how it looks like in Rule Editor: redirector rule

With this rule applied all PDFs will be opened in internal viewer.

  • 2
    Choosing "Wildcard" and "Response Header" from those dropdown menus that look like buttons is important - I missed that at first.
    – Brilliand
    Commented Nov 8, 2012 at 2:12
  • 2
    Chrome extension no longer available. See superuser.com/a/755252/165804 for an alternative. Commented Jun 13, 2014 at 13:44

No PDF Download makes "Google Chrome always open PDFs with its internal viewer when [you] click a link, as opposed to downloading it to the default location."


On the URL bar, type chrome://plugins/, look for the Adobe plugin and click on Disable.

Restart Chrome and load a PDF and the file will load using the Google PDF plugin.

  • Exactly what I had to do to get it working on OS X
    – Nick
    Commented Oct 14, 2010 at 15:28
  • 3
    Comment by @Kyla: This didn't work for me :( it's just this one website that forces me to download them instead of just viewing them online.
    – Ivo Flipse
    Commented Dec 30, 2010 at 17:26
  • which version of chorme are you using? it works for me perfect... Commented Dec 30, 2010 at 20:34
  • 2
    This seems to solve a different problem. See the second question jdm linked to: stackoverflow.com/questions/3251575/…
    – daxlerod
    Commented Apr 24, 2012 at 19:52
  • 1
    I'm having the same problem; the Chrome PDF plugin is already enabled on my machine. I'm trying to force pages that specify the PDF should be downloaded (for example with a meta refresh or a MIME entry) to open the PDF in a Chrome tab instead, since all I'm going to do is find the PDF on my hard drive and open it there, then have to go find it again later and delete it. I believe the OP was trying to accomplish the same. Commented Jul 1, 2012 at 19:07

Try the --no-sandbox option.

This should be your shortcut:

"C:\Program Files\Google\Chrome\Application\chrome.exe" --app="http://superuser.com" --no-sandbox
  • How would it work? --no-sandbox should disable sandbox, not ignore HTTP headers, right?
    – gronostaj
    Commented Jul 22, 2013 at 8:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .