Firefox downloads my PDF files straight to "Downloads", Safari opens them "in-page".
I need PDF files to save to a file, not to open.
Is there a setting make Safari download PDF files instead of opening them in-page?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityOpen up a terminal window: ⌘space and type Terminal. Hit enter when its highlighted. When you get to the terminal prompt, type the following command:
defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES
You won't get a response at the command line, but once you restart Safari it will no longer open them in the browser.
To take it a step further while you're there, you can keep it from opening them once they are downloaded with this one:
defaults write com.apple.Safari AutoOpenSafeDownloads -bool NO
This last command achieves what the other answer suggests.
You can make Safari on the Mac download ANY files (mp3, mp4, jpg, pdf and more) by doing the following.
The file you are viewing downloads to the Downloads folder on the mac.
I've tested this with almost all file types possible. Very very useful little feature that unfortunately too few people know about.
Better yet, you can just hold down alt when you click.
When you click on a link to a PDF, hold down the control key. A menu pops up. Select "Download Linked File as..."
As has been noted by others, the accepted answer that modifies the Safari plist does not work as of Sierra (Safari 10+?).
The method I used (on High Sierra) was to navigate to /Library/Internet\ Plug-Ins/
(terminal or via Go in finder). There were two plugins AdobePDFViewer.plugin
and AdobePDFViewerNPAPI.plugin
. I moved both of these to the /Library/Internet\ Plug-Ins/Disabled\ Plug-Ins
directory. Upon restart, Safari stopped automatically opening pdfs in its viewer.
I haven't been able to find the relevant .plist setting to disable or modify this behavior in a less "brute" way.
None of the right-click stuff that should be working is working properly for me (I have a very fussy link). But I have found that if you are looking at the document in-page, if you hover towards the bottom of the window you should get a black control bar... the disk icon will save the pdf to disk.
Safari automatically opens many files in the browser window. If you want to download any of those files follow these steps:
1) Click on the Firefox
menu and select Preferences
2) In the window that opens click on the Applications
tab
3) In the column named Content Type
scroll down to the type of content you are trying to download (or type the file type in the search field)
5) When you find it, click on the action popup (to the right) and change it from Preview in Safari
to Save file
6) Try the pasting the URL of the file you want to download into the browser again and it should now start to download (or ask you where to save it!)
Holding option while clicking on a link will automatically download the target instead of opening it.
If you've already opened a PDF in Safari, hold option down and click anywhere then open the file with Preview and you could find a function named Save under the File menu.
Right click on the pdf link and click < Download Link File >.
Open the pdf right click --> view/open in preview the file will open in preview save the file
From this article:
Go into the Preferences and simply un-tick the option Open “safe” files after downloading.