DaveC <
inv...@invalid.net> wrote:
> In past OS X versions I've used a Terminal command to set my PDF viewer
> preference to Preview rather than Safari. This is the method for Mavericks,
> supposedly:
>
> <
http://apple.stackexchange.com/questions/106660/how-make-safari-7-open-pdf-
> files-in-preview-instead-of-opening-them-in-page>
>
> The desired result is that after clicking on a link that is the URL to a PDF
> file, Preview launches and the PDF file displays in that application.
>
> For me this does not happen. Instead, a new web page opens in Safari and
> garbage fills the page.
That article says the method which _previously_ worked (defaults write
com.apple.Safari WebKitOmitPDFSupport -bool YES) does not work any more
with Safari 7. Incidentally, the same applies to Safari 6.1.
With that setting, earlier versions of Safari would download a PDF with
a simple click on a link, rather than displaying the PDF in Safari. (You
also had to get rid of the Adobe PDF plugin, if you had installed Adobe
Reader.)
I already had that setting enabled, and had the same problem with Safari
6.1 and 7. Until a better solution presents itself, I've turned off that
setting with:
defaults write com.apple.Safari WebKitOmitPDFSupport -bool NO
This restores the standard behaviour of Safari, and PDFs are now
displaying in Safari (rather than seeing a page full of the raw data of
the PDF in text form). From there, I can save them.
Alternatively, I can secondary click on the link and choose Download
Linked File, but this is a nuisance as some web sites don't make it
clear that the link you are about to click on is a PDF rather than
another web page.
--
David Empson
dem...@actrix.gen.nz