29

When I download a PDF or image in Google Chrome on my Mac, is it possible to prevent Chrome from automatically opening it in my default application for that file type (e.g., Preview)?

I notice that Chrome does not do this for other downloaded files such as audio and ZIP archives.

I still want to be able to preview files in Chrome; I just want to prevent it from automatically launching my image/PDF viewer application after I download them.

For example:

  1. I click on a link in an email to a PDF document or an image file.
  2. Chrome displays the contents in the browser.
  3. I press Cmd-S and save the file to my computer.
  4. When the download finishes, the file opens automatically in Preview.app.

It's that last step that I would like to bypass.

2

4 Answers 4

18

You can set the auto-open preferences for PDF files by clicking on the download status button in the downloads bar. When you have a downloaded PDF sitting there, click on the arrow and unselect "Always Open Files of This Type" in the pop-up menu.

You can also reset all the user preferences for auto-open by following the directions below from Chrome's help site at http://support.google.com/chrome/bin/answer.py?hl=en&answer=95759

If you want certain types of files to always open after they're done downloading, click the arrow next to the file button in the downloads bar and select Always open files of this type. To prevent potentially malicious files from automatically downloading to your computer, this option isn't available for executable filetypes, such as those with .exe, .dll, or .bat extensions (for Windows), and .dmg extensions (for Mac).

You can clear auto-opening settings through the Settings dialog. Here's how:

Click the wrench icon on the browser toolbar. Select Settings. Click the Under the Hood tab. In the "Downloads" section, click Clear auto-opening settings. This clears your settings for all file types. Click Close when you're done, if you're using Windows or Linux.

5
  • 6
    This no longer works.
    – user3241
    Mar 12, 2017 at 16:37
  • 1
    Changing the setting through the Download Bar does still work and is currently the easiest solution by far
    – Matt
    Jun 23, 2017 at 14:58
  • 2
    In Chrome 67, it seems that for some downloads (at least PDFs), the download bar is never displayed. Opening the Downloads page does not have the reset opening preferences under any contextual menu that I can find. Opening this sample test PDF is one way to reproduce this - www.pdf995.com/samples/pdf.pdf. Jun 18, 2018 at 21:46
  • The "downloads bar" (at the bottom of Chrome's window) only opens when the downloaded file has NOT been automatically opened. So this solution does not work. [As of Version 91.0.4472.77 (Official Build) (64-bit)] Jun 13, 2021 at 18:00
  • If your internet isn't super fast, heres a link to a 100mb pdf, should give you a few seconds to disable automatic opening(assuming you don't have super fast internet) cartographicperspectives.org/index.php/journal/article/view/…
    – 9 Guy
    Jun 22, 2022 at 15:44
11

Here is what I have done and it worked for me. Apparently this is not an OS issue, it is rather a browser issue.

If you are using Google Chrome, go to settings, then go to the very bottom of the page and click on "Show Advanced Settings" then under 'DOWNLOADS' uncheck the part that says you have opted to open some files by default.

If you are using Safari, open Safari preferences and on the general tab, uncheck "automatically open safe files" since Safari has this as a default option and unfortunately, pics that open are considered safe files.

3
  • This does not work on Windows 8.1 with V56.
    – user3241
    Mar 12, 2017 at 16:38
  • Works in Chrome on macOS.
    – frhd
    Apr 17, 2017 at 12:11
  • 1
    In Version 91.0.4472.77 (Official Build) (64-bit) for Windows, there's an item entitled "Open certain file types automatically after downloading" with a button labeled "[Clear]". Clicking [Clear] seems to have solved the problem. Jun 13, 2021 at 18:07
4

On Mac, the above answers were not enough for me unfortunately to stop auto-opening of PDFs in Preview by Chrome.

The answer was to manually edit the preferences files for Chrome.

First, quit all running instances of Chrome.

Then, run this in your Terminal:

# Go to Chrome directory:
cd ~/Library/Application\ Support/Google/Chrome 

# List files that have any open_pdf settings:
grep -rl open_pdf .

Open each Preferences file listed in your text editor (this will be 1 or more Preferences files depending on the number of User Profiles you have set up in Chrome), and find all the always_open_pdf_externally and open_pdf_in_system_reader preferences. Change them so they are false:

"open_pdf_in_system_reader":false

"always_open_pdf_externally":false

Next, save changes and close the Preferences file(s).

Finally, open Chrome and see if this has helped. PDF downloads should not be auto-opened any longer.

1
  • THIS! Thank you so much! - Finally an annoying behavior of Chrome less.
    – CodeBrauer
    Jun 27, 2019 at 10:03
0

This is a known issue that was recently fixed. Eventually you will get an update that includes the fix.

https://bugs.chromium.org/p/chromium/issues/detail?id=680202

You must log in to answer this question.