Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Disable Safari's ability to handle PDF files Web Browsers
Some people do not like Safari's new ability to open PDF files in the browser window. Here is the default to change in the Terminal to switch back this behavior:
defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES
[robg adds: To use this hint, first quit Safari, open the Terminal, and type the above command. Restart Safari, and you should find that PDFs are treated as they were before. To restore Safari's handling of PDFs, repeat the above command, changing YES to NO. Remember to quit Safari first. Note that I haven't tested this one; I use the Acrobat PDF plug-in and haven't had a chance to disable it in order to test...]
    •    
  • Currently 2.83 / 5
  You rated: 4 / 5 (6 votes cast)
 
[93,510 views]  

Disable Safari's ability to handle PDF files | 21 comments | Create New Account
Click here to return to the 'Disable Safari's ability to handle PDF files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Disable Safari's ability to handle PDF files
Authored by: macsolve on Apr 26, '05 09:44:38AM

This only applies to Tiger, right?



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: fracai on Apr 26, '05 03:46:44PM

10.3.9 secretly introduced an updated WebKit/Core/Safari so I believe this applies to 10.3.9 as well as Tiger.

---
i am jack's amusing sig file



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: zerodefect on Apr 26, '05 04:41:34PM

Tryed this using 10.3.9 and it dosen't seem to work. Will test it out with Tiger once it arrives.



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: phil4u2 on Apr 26, '05 05:14:18PM

no, it doesn't here



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: solfege on Apr 26, '05 04:09:51PM

perhaps slightly off topic, but how would one go about disabling the acrobat pdf support so as to even *see* the effects of apple's native support. I'd like to try this before deciding what else I want to do.

Or am I just being dense and not realizing that the command you posted here will do that?



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: Black on Apr 26, '05 06:08:49PM

You need to find Adobe's PDF plugin and move it. It is probably lurking in /Library/Internet Plugins (though it may be in your personal Library, depending on how you installed reader). Just pull that out to your Desktop or something and restart Safari. However, as others have mentioned above - it doesn't seem to work in Panther...



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: turnerm5 on Apr 26, '05 09:09:38PM

Nah, just go into Adobe Reader Prefs and disable it.



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: msk on Sep 07, '05 09:33:25AM

Unless of course those Adobe Reader Internet preferences are grayed out as on my system, perhaps because I'm not logged in as adminstrator which Adobe Reader 7.0 needs in order to install it's plugin into the Safari Bundle -- why mess around with plugins in the user's Application Support folder when you can just modify the Application itself.

You don't really browse the web using an administrator account do you?



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: msk on Sep 07, '05 10:52:50AM

You need admin privileges to disable the Adobe Reader 7.0 Plugin, first you need to log in as Adminstrator and launch Adobe Reader 7.0 and choose preferences (cmd-K - nonstandard), down in Internet unclick the first two items.

Problem is when you log into a non-admin account Reader 7.0 will ask for admin username/password so it can install Frameworks in Safari. If you can't or won't Adobe Reader quits.

So you need to set the preferences in an admin account before you use Reader 7.0 in a non-admin account; otherwise, remove \~/Library/Preferences/com.adobe.* in the non-admin account.

If you can't get the Internet preferences disabled in Reader 7.0 in the non-admin accounts either copy an admin preference file "com.adobe.Reader7.0.plist" or try editting that file using the Property List Editor (if you installed the Developer Tools).

Under the section Originals, look for BrowserCheck and BrowserIntegration. If BrowserCheck doesn't exist select Originals and clcik button New Child, change the "New Item" to "BrowserCheck", change it to an array, then expand the disclosure triangle and press New Child, change it to "Number" with value of 0 and hit "New Sibling" button and change it to Boolean with value of No.

If you convert it to text you would get:

<key>Originals</key>
<dict>
<key>BrowserCheck</key>
<array>
<integer>0</integer>
<false/>
</array>

Next do the same for BrowserIntegration if it does not exist.

Preventing Adobe Reader 7.0 from messing with Safari is very hard, perhaps impossible. The closest I came was by "fixing" "com.adobe.acrobat.sh.plist", open with property editor and change "NoSelfHealNeeded" to "Yes". Problem is that Adobe Reader will undo this everytime it is launched unless you get fancy with the premissions of ~/Library/Preferences (simple changing of the premissions of this file is bypassed by Adobe Reader 7.0).

Reader also installs a plugin directory in /Library/Internet Plug-Ins/.

The ends that Adobe will go to to modify your non-Adobe applications should give serious reason to avoid using Adobe Reader.



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: ebernet on Apr 26, '05 06:31:23PM

Just so as you know, Apple's handling of PDFs is displaying them as an image (or a scrolling image). There are no controls whatsoever. It is really quite lame. I went back to using SchubertITs excellent plug-in.



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: silentaccord on Apr 27, '05 06:09:17AM

When using Apple's PDF handing, control-click to see the controls.



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: Curlywee on May 25, '05 05:45:16AM

I too was initially disappointed with the move to in-line viewing of PDFs. But now that I've discovered the controls which Control-clicking brings up I'm beginning to prefer the new approach. The first option is to Open with Preview, so I can still do this if I wish, while the zoom and page controls are quite adequate for a cursory examination of documents.

I notice that PDFs which you elect to open with Preview are in the 'tmp' folder at the root level of one's HD. Are items cleared from here on quitting Safari? If so, this is preferable to cluttering up one's download folder with loads of redundant PDFs.

On balance I've now become converted to the new approach, and won't take advantage of this hint's helpful advice.



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: Brock Lee on May 29, '05 08:48:35PM

Are items cleared from here on quitting Safari?

The items in /tmp are removed semi-regularly. They are not necessarily removed when Safari quits unless Safari itself does so. Otherwise, the operating system will clean it periodically.

It looks like this cleaning task is handled by the "daily" script (/private/etc/daily) which is run on a daily basis. And the policy built into the script is that items which have neither been created or accessed within the last three days will be removed.



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: vikash on Mar 17, '06 08:11:29AM

Oh, thanks for the clue. I've been wondering how to access PDF controls in Safari preview. The ctrl+click does the trick. Deserves its own hint really!



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: novak on Nov 02, '05 12:44:53AM

As of Nov 1 2005, OS X 10.4.2, this doesn't work for me. Safari opens the PDF in the browser even after issuing the above command.



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: reinholt on Dec 20, '05 05:51:59PM

It appears to me that the terminal command is only half of what is required. The other half is to go to acrobat preferences->internet and uncheck the "Display PDF in browser using ..." checkbox.



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: jwn2 on Feb 27, '06 07:06:54PM

10.4.5 didn't change the value of this default, but along with 10.4.5 came an update to the QuickTime plug-in. The defaults database for the com.apple.quicktime.plugin.preferences shows that the WebPluginMIMETypes dictionary key has a "application/pdf" dictionary. In the "application/pdf" dictionary is a boolean key WebPluginTypeEnabled. This was set to YES. I didn't try to construct a defaults command to change the value of this key in a dictionary inside a dictionary inside the com.apple.quicktime.plugin.preferences domain (Whew!). As the man page says, "Defaults can be structured in very complex ways, making it difficult for the user to enter them with this command."

However, you can change the value of this default via the System Preferences pane for QuickTime by clicking the MIME Settings button on the pane and finding the PDF Image preference and turn it off.

I haven't seen any bad effects from this. But if other applications you use invoke the QuickTime plug-in and image pdf files for you, you may not get the results you want by disabling this preference.

But for me, this is good.



[ Reply to This | # ]
Adobe's Version Cue
Authored by: eti on Apr 27, '06 02:20:10PM

I was unable to read ANY pdf files in Safari, and unable to select any application that could read dpf files in the dialog box that asked me to select one. Running the Adobe's Version Cue uninstall app fixed that.

Plus, thanks to the tips in this thread, I'm back to viewing pdfs in Safari!



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: Andreas_Fischlin on Feb 25, '07 08:25:23AM
Whoever prefers to use an application with a GUI to accomplish the same task: There is the freeware TinkerTool available from http://www.bresink.com/osx/TinkerTool.html. It offers a preference tab for Safari where a checkbox is offered to control the option in question. It is entitled as "Disable native support for display of PDF documents". Of course TinkerTool gives you simple control of many more system wide preferences of a similar kind. Thanks to the author Marcel Bresink :-) !

Andreas Fischlin

[ Reply to This | # ]

Disable Safari's ability to handle PDF files
Authored by: TitaniumXTC on Dec 19, '07 07:15:07PM

Works perfect in Mac OS 10.4.11 and Safari 3 for disabling the error message received at the bottom of the Safari window when the Adobe Acrobat 8 Reader prevents the built-in PDF support. Also, by eliminating this conflict, PDF documents open FAST compared to before. The only problem I've found is when I returned to Terminal to reverse the command to "NO" it did not restore the Safari built-in PDF support. So, I think it's a one-way trip for now. I much prefer the Adobe reader and probably won't switch back. Great tip!!!



[ Reply to This | # ]
Disable Safari's ability to handle PDF files
Authored by: jpwav716 on Feb 21, '10 10:04:09AM

The post office has a faq to address this problem:
http://preview.tinyurl.com/yzxdwd8



[ Reply to This | # ]