5

When PDF files are returned by a Google search, sometimes I'd like to just download them, rather than viewing them in the browser.

Google results with a PDF

How on earth do I do this in Chrome?

I can't right-click the link and Save As, because that link isn't really to the PDF.

Note: This is not a duplicate of Download arbitrary file with Google Chrome because the solution given was to simply right-click and Save As, which does not work in this situation.

5
  • It's not really a link (anymore), that's why you can't right it and select Save As.
    – James K
    Sep 13, 2012 at 22:05
  • It is a link, but the URL is actually google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&c... Sep 13, 2012 at 22:07
  • I didn't mean the blue link text, I meant the green text used to be a link, but Google changed that some time ago. About the same time that the advanced search switches + and - started bringing up empty searches.
    – James K
    Sep 13, 2012 at 22:29
  • Stupid Google... Sep 13, 2012 at 22:36
  • 2
    Indeed. It's like their motto has changed to "Don't be evil, just be annoying."
    – James K
    Sep 13, 2012 at 22:51

8 Answers 8

8

The only way I know to do this for a PDF file would be to disable Chrome's automatic mode of opening PDF's.

I'm using the latest Chrome on OS X:

Chrome Menu -> Settings -> Advanced Settings -> Content Settings -> Disable Individual Plugins -> Disable Chrome's PDF Reader

Or the short way: chrome://plugins

Now when you click the file it should automatically download it.

You can further read about disabling PDF in Browser over here: Stop PDFs from displaying inside Google Chrome

Hope that helps!

1
  • Thanks. This is such an annoying lack of a feature. My usual method is to write an HTML file, and put the URL in as a link so that I can open it up and do save as. Sep 13, 2012 at 22:03
4

EDIT: Actually I misunderstood your question. You can just load the PDF page and the press CTRL+S.

Google is trying to gather more information by first sending you to a google URL that then forwards you to the PDF. That's why the plain-text "link" is no-longer an actual link.


You can select / highlight the text URL, right click on it, the click "go to www.glyn.de/data..."

Google Results

Once the page is loaded, press CTRL+S

3
  • No, that does not save the file. Again it tries to open it in the browser. Sep 13, 2012 at 21:48
  • Much better! Chrome tries to load the PDF (and as usual Adobe dies for some reason) but I can still save with ctrl+S. Sep 13, 2012 at 22:07
  • This works well.
    – Jayhello
    Jun 30, 2018 at 11:44
3

Mr. Justin Pot describes what to do for Chrome and Firefox here: http://www.makeuseof.com/tag/copy-crapfree-urls-googles-search-results/

Summary: Chrome: Install 'Don't track me Google'

Firefox: Install the Firefox addin 'Google/Yandex search link fix'

PS. This issue had caused me to change my home page to search.yahoo.com - I still have the Google search tool however at the top.

With Yahoo, the links are real links, so you can click 'Save Link As' and save your PDF as you used to be able to.

(You also get the old Google cached links which is another benefit)

3

There is an extension in Chrome Extension market which directly download pdf instead of opening.

"Direct Pdf Download" Link is :- https://chrome.google.com/webstore/detail/direct-pdf-download/igpfkcnkddfkacjpffopkioandifnkpi

3

Marcus Svensson has made a Chrome extension "Fix Copy Link Address" (https://chrome.google.com/webstore/detail/fix-copy-link-address/aeecoplkhlfpclbiabnfkjlfkbhpbcjd), which does exactly the same as the Google/Yandex search link fix mentioned above. You will get the real URL and not the Google-produced one.

2

When you perform a Google query, the links in the results page do not actually point to the pages you expect. Instead, they point to a Google server which logs which link you click and then redirects you to the actual page. They do this so that they can track the results (i.e., which of the results we found were actually desirable by the user?)

The problem is that they trick users and hide this behavior. When the page loads, it uses JavaScript to print the actual/correct URL to the status bar when you hover the cursor over a link in the results page, but the link still points to page on their servers instead of the page/resource expected. That’s why when you try to save a non-HTML result, you get the wrong thing.

(You can actually see the redirection in action by right-clicking a link, dismissing the context-menu, then hovering over a link. You’ll notice that the correct URL is show before right-clicking, and then the Google URL is shown after. In fact, if you disable JavaScript altogether, the hiding mechanism goes away and you can see that the links are all to Google’s server.)

There is an easy fix however, just install a browser extension to override this tracking and make the links point to the actual pages/files. There are plenty available; just search for Google tracking or something to that effect. Note however that not all will work correctly, so you may have to test a few. My personal recommendation is the googlePrivacy user-script. Not only does it work, but because it’s just a user-script instead of a full-fledge extension, it doesn’t use as much resources.

Now, whenever a Google search returns non-HTML results, you can simply right-click the link and select Save As or hold Alt (or ⌥ (Option) on Macs) and left-click it.

1
  • Alt+left-click doesn't work with Mac trackpads, just opens context menu.
    – dzh
    May 10, 2016 at 22:16
2

Chrome can be told to download PDF files instead of previewing them.

Do this:

  1. Open Settings
  2. Scroll to the bottom and click on "Show advanced settings..." hyperlink
  3. Under "Privacy" section, click on "Content Settings..." button
  4. Scroll down to the bottom and check "Open PDF files in the default PDF viewer application".

These instructions are tested on Google Chrome 56.0.2924.87 for Windows.

It will directly download without showing any preview on Chrome.

0
  1. Go to this URL in search bar: chrome://settings/content/pdfDocuments

  2. There is toggle button for pdf viewer or download directly

screenshot

NOTE: Tried in Chrome version 91

1
  • This also works for Edge 91 with the following URL edge://settings/content/pdfDocuments
    – Ramhound
    Jun 1, 2021 at 19:35

You must log in to answer this question.

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