journal: mac

Quick Tip: Prevent Safari from displaying PDFs

Required Materials

A Mac running Mac OS X 10.5 (I haven’t tried this with Tiger).
About 30 seconds (or less).
The ability to copy and paste a line of text, then press the return key.

Here’s a quickie…

For whatever reason, since upgrading to Leopard, Safari refused to display PDFs. Instead, they would automatically download, cluttering up my Downloads folder with PDF files I only wanted to look at once. I looked everywhere, but couldn’t find a checkbox or control anywhere that dictated whether PDFs should open in Safari or whether they should download to my hard drive. Some people might prefer PDFs to download directly. I didn’t.

Eventually, I got sick enough of PDFs downloading themselves against my will, so I decided to do a little searching.  Not long after, I found the answer. Since I’m a nice guy, I’ll go ahead and share it with you here.

There is a Terminal command that allows you to turn inline PDF displaying on or off. To force all PDFs to download instead of displaying in Safari, type the following into the Terminal and press return:

defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES

To enable PDF viewing in Safari, type this instead:

defaults write com.apple.Safari WebKitOmitPDFSupport -bool NO

It’s quick and easy to change, but not particularly accessible. A checkbox in Safari Preferences would be a welcome addition. At any rate, my PDF-viewing sanity has been restored. wink


« Previous · mac journal · Next »

thinkback

1.

I happen to be one of the people who prefers to download PDF’s rather than view them in the browser. I managed to do this in Tiger, though I think I changed the mime settings or something.

2.

I happen to be one of the people who prefers to download PDF’s rather than view them in the browser.

Loser. wink

Page 1 of 1 pages

respond

Have an account? Log in to leave your comments!

Show Smileys Show Smileys

Click on an image to add it to your comment. Hover over it to see its name and character sequence.

grin :-)
LOL :lol:
cheese :cheese:
smile :)
sad :(
wink ;-)
smirk :smirk:
rolleyes :roll:
confused :-S
surprised :wow:
big surprise :bug:
tongue laugh :-P
tongue rolleye %-P
tongue wink ;-P
raspberry :P
blank stare :blank:
blinky face :blink:
long face :long:
ohh :ohh:
grrr :grrr:
gulp :gulp:
oh oh 8-/
downer :down:
red face :red:
sick :sick:
shut eye :shut:
hmmm :-/
mad >:(
angry >:-(
zipper :zip:
kiss :kiss:
shock :ahhh:
cool smile :coolsmile:
cool smirk :coolsmirk:
cool grin :coolgrin:
cool hmm :coolhmm:
cool mad :coolmad:
cool cheese :coolcheese:
vampire :vampire:
snake :snake:
excaim :exclaim:
question :question:
wtf o_O



Name:

Email:

Location:

URL:

Submit the word you see below:


Please note: Comment spam WILL NOT be tolerated, and anything resembling it will be deleted or modified at the discretion of our administrators. Please abide by Deep Thought's rules and guidelines for posting conduct.