You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Safari - PDF Black Screen... Can't view embedded PDF's - help.

Yes, I know there are other posts on this topic and I've followed the advice on all the posts.
I spoke to Apple Care today as well...

Using Safari when I go to a website with an embedded PDF it comes up blank (black screen). I've tried with Firefox and it works no problem.
I've completely removed Safari, I've completely removed Adobe and all plugins with Apple Care. I reinstalled Safari... same problem. I reinstalled Adobe Reader... same problem.
I've gone through numerous posts. Updated Flip4Mac, changed preferences in preview, changed preferences in Adobe.

None of these options are working.
Apple Care said I should reinstall the OS. I've backed everything up, but reinstalling sounds a bit drastic to me. I thought I would try here and see if anyone had any other ideas.

Thanks for the help.

Rick

MacBook Pro, 15-inch, 2.2GHz Laptop Computer, Mac OS X (10.4.11), Apple MacOS X 10.5 - Snow Leopard

Posted on Dec 23, 2009 10:17 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 23, 2009 10:51 AM

Your profile lists 3 different OS's. Which one is giving you trouble?
102 replies

Apr 20, 2012 6:10 AM in response to CherylSL

Me too. I see (using italics to represent greyed-out text):


[checked checkbox] Display PDF in browser using:

/Applications/Adobe Reader.app

[checked checkbox] Display in Read Mode by default


Unchecking the "Display in Read Mode by default" checkbox makes no difference to the greying out or the unchangeability of the upper checkbox.


Have I understood makmacapplefan's instructions correctly?

Apr 20, 2012 4:48 PM in response to OxfordBag

I discovered that I was also unable to view PDFs in Safari. Hadn't really bothered me until a poster in another forum questioned why he couldn't. I suggested that he needed some Plug-In. To make a long story short, the more recent version of Safari already have that Plug-In. BUT, if you ever install Adobe Reader or Acrobat, you'll probably end up with it taking control of viewing the PDFs. And I've seen that dieabled checkbox several of you have mentioned. Nasty programming by Adobe, in my humble opinion!


I was able to remove that check mark by simply deleting the Plug-Ins that Adobe had installed (mine were not in my ~/Library but the main Library/Internet Plug-Ins). Unfortunately, even restarting the Mac or Safari didn't change anything...well, I could now get a white blank screen instead of a black one but that wasn't too interesting, either way! 😝 The problem is that while Adobe set a vartiable to a value, deleting its Pug-In(s) doesn't re-set the variable. That's what has to be done.


In an attempt to re-set that variable, someone posted a Terminal command very early in this thread:

1. defaults write com.apple.Safari WebKitOmitPDFSupport -boolean-neg

as suggested above. Then closed and re-launched Safari.

No apparent affect, but probably no harm done.

The problem is that "neg" is not a valide Terminal value for a Boolean (or "bool"). And if entered exactly as posted, it actually puts the value "-boolean-neg" into the .plist file. Amazingly, that doesn't seem to cause any problems, fortunately. 😀 The appropriate values could be any of the following: true, yes, false, no. The first two are equal to putting a 1 (one) in the .plist. The other two values place a 0 (zero) in there.


But, do you see what the name of this variable is?! WebKitOmitPDFSupport. What this means, therefore, is that IF we want Safari to display a PDF the value must be false/no/0 (zero). In other words, it's a double negative! 👿 You can view what's in that variable in Terminal by using:


defaults read com.apple.Safari WebKitOmitPDFSupport


If it is anything other than zero, you will NOT be able to view a PDF in Safari. So, the Terminal command to restore that capabilty is:


defaults write com.apple.Safari -bool false


You can also make this change by opening the com.apple.Safari.plist in a TEXT editor (not TextEdit or Word or Pages!) like TextWrangler. Then, search for something like "WebKitOmitPDFSupport" and you should find only one occurance looking similar to this:

<key>WebKitOmitPDFSupport</key>

<true/>

Now, change the "true" to "false" and you should be able to view a PDF in Safari, again! At least until you re-install something like Adobe Reader/Acrobat/etc.


Finally, use the Safari->Help->Installed Plug-Ins and look very, very carefully for "pdf" in the list (probably in the 'extensions' column. Anything that has that entry will probably negatively affect Safari's PDF display capability! For example, Speed Download "intercepts" any .pdf file and forces it to be downloaded! I had to deselect that setting in Speed Download.


I hope this helps what seems to be a Battle of the Bits!! 😮

Apr 25, 2012 5:02 AM in response to xairbusdriver

I have an iMac running Mac OSX version 10.6.8 and I recently downloaded Adobe Reader 10.1.3 (Preview has some limitations). And like all the earlier correspondents, I was more recently afflicted with the dreaded "black screen" when trying to use Safari to view embedded pdf pages. Having read some other posts on the problem, I went looking for but was unable to find any AdobePDFViewer.plugin, in Library or anywhere else. I removed Adobe Reader and tried to find all possible "appendages" to remove, too. This did not help. Having read xairbusdriver's post I thought the approach sounded promising because it suggested a way to get to the heart of the problem. But I had never opened Terminal before and I clearly don't know what to do to drive it because I did not get the result I wanted.


However, I re-read xairbusdriver's last paragraph and went looking for any remaining Adobe-related plug-ins which previous searching had not found. The first plug-in I found was one called AdobePDFViewerNPAPI.plugin. I moved it to the Trash bin, emptied this and re-opened Safari and .... the problem is fixed!


Thanks xairbusdriver!

Apr 30, 2012 1:35 AM in response to xairbusdriver

Thanks. This helped. It took me a while to pluck up the courage to perform what felt like brain surgery. Eventually I approached it sideways and tried Firefox. I had the same problem with the blank pdfs, and discovered I needed to disable an Adobe plug-in. That worked, and then I did pretty much the same with Safari – moved the plug-in (like Robert Arthurson). It now works fine and I'm much happier.

Safari - PDF Black Screen... Can't view embedded PDF's - help.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.