Build Date: Wed Jan 15 09:50:30 2025 UTC
There are half-eaten animals lying on the sidewalks!
-- Head Freezin' Gene
Displaying PDF Files in Mozilla
2005-11-08 18:50:52
At some point, my Mozilla browser stopped displaying PDF files. When I first installed it, I could view PDF files in a tabbed browser window just fine, but somewhere along the upgrade path viewing PDFs just stopped working.
I've been using Mozilla since the pre-v1.0 days, and I've upgraded through every stable version since the first one came out, and a few of the alpha and beta versions as well. At some point along the way with all of those upgrades, Mozilla stopped displaying PDF files. I could click a link, and the window would show the PDF file in the location bar, but the screen would be blank. My only option at that point would be to right-click the link to the PDF file, save the file, and then use Konquerer to open the file with KPDF or Acrobat Reader. Annoying.
I tried uninstalling and reinstalling Mozilla and its associated files. No luck. I'd tried changing the embedded file associations for .pdf files using KDE's File Associations tool, but Mozilla doesn't use those settings.
Checking the Help | About Plugins menu option showed that Mozilla used a shared library file called nppdf.so for displaying .pdf files. Checking the system for that file I found:
# locate nppdf.so
/opt/mozilla/lib/plugins/nppdf.so
/opt/MozillaFirefox/lib/plugins/nppdf.so
/usr/lib/browser-plugins/nppdf.so
/usr/X11R6/lib/Acrobat7/Browser/intellinux/nppdf.so
Since I also have Firefox installed, and since I can display .pdf files in Firefox, I checked the library files:
# ls -al /opt/mozilla/lib/plugins/nppdf.so
-rw-r--r-- 1 root root 129611 2004-06-08 12:58 /opt/mozilla/lib/plugins/nppdf.so
# ls -al /opt/MozillaFirefox/lib/plugins/nppdf.so
lrwxrwxrwx 1 root root 51 2005-06-09 11:36 /opt/MozillaFirefox/lib/plugins/nppdf.so -> /usr/X11R6/lib/Acrobat7/Browser/intellinux/nppdf.so
# ls -al /usr/X11R6/lib/Acrobat7/Browser/intellinux/nppdf.so
-rwxr-xr-x 1 root root 878568 Jul 27 15:10 /usr/X11R6/lib/Acrobat7/Browser/intellinux/nppdf.so
Looks like Firefox uses the library that comes from Adobe, but Mozilla is using its own copy, from June 2004. Can it use the copy from Adobe? Let's try moving the old shared library out of the way and creating a symbolic link from the Adobe version of the library to the place where Mozilla expects to find the file:
# mv /opt/mozilla/lib/plugins/nppdf.so /opt/mozilla/lib/plugins/nppdf.so.orig
# ln -s /usr/X11R6/lib/Acrobat7/Browser/intellinux/nppdf.so /opt/mozilla/lib/plugins/nppdf.so
# ls -al /opt/mozilla/lib/plugins/nppdf.so
lrwxrwxrwx 1 root root 51 Oct 27 09:02 /opt/mozilla/lib/plugins/nppdf.so -> /usr/X11R6/lib/Acrobat7/Browser/intellinux/nppdf.so
# ls -al /opt/MozillaFirefox/lib/plugins/nppdf.so
lrwxrwxrwx 1 root root 51 Jun 9 11:36 /opt/MozillaFirefox/lib/plugins/nppdf.so -> /usr/X11R6/lib/Acrobat7/Browser/intellinux/nppdf.so
After stopping and re-starting Mozilla the problem was solved.
T O P S T O R I E S
The Future Ain't What It Used To Be
Ideas have taken horrifying shape and rooted into our modern reality. (More...)
The Once & Future King of Dust
Only The Onion could have acquired Infowarts. (More...)
Another Nobel Prize-Winning Author Describes Drunkenness
This book won a Pulitzer Prize. Here's its famous paragraph on getting drunk... (More...)
Why I'm pretty sure JD Vance had sex with a couch
True or false? The answers await us in that magical land where all truths are revealed -- the internet. (More...)
In 2010 Dr. Cheng-Huai Ruan discovered a way to cause a patient with an abnormal heartbeat to get back into a normal rhythm by sticking a finger up the patient's ass. (More...)
WKRP in Cincinnati aired from 1978 through 1982. Howard Hesseman played Dr. Johnny Fever, a DJ from Los Angeles who was fired from his previous job for saying the word "booger" on the air. In the show Hesseman would do some dialogue, introduce a song, and start the song. You'd hear a few notes, but never the whole song. (More...)
C L A S S I C P I G D O G
We here in SMRL's Beverage Research Lab realize that there is more to life than just drinking spocktails. It's important to have other activities. One such activity that we wholeheartedly support is dancing six or more hours to Trance music. So we have designed a drink to accommodate this. (More...)
What do Computers and Skateboards have in Common?
They both sprang from the mind of John Mauchly that's what. (More...)
A Nobel Prize-Winning Author Describes Liquor
Curled up cozy with a good book? All warm and snuggly and thinking about friends far away? So am I, reading the greatest story by the greatest writer -- when he suddenly starts waxing philosophical about liquor! (More...)
Vacationing from Somnambulant Narrow Realities
So about six months ago, I was chilling in Chang Mai, Thailand with ICBINJ, perursing the Bangkok Times over my banana pancake and Big Chang breakfast when I spotted this article reprinted from the LA Times. It was about some kooks from California (where else?) who were claiming to have been to the front lines in Afgahnistan in mid-December and had recorded the whole feat on their website. "Holy Fuck!" I thought, "Now That's web journalism. Who are these guys!?" (More...)
A Treatise Prepared for the Gallup Organization on the Symbolism of the Scarab
Well dahlings, the response to my new tarot column has been quite overwhelming. I got three whole pieces of mail requesting my arcane insight. One asked why blogs suck so much, and one was a completely incomprehensible tale of bears shitting random numbers in the woods — I am fairly certain it was a cryptographic allegory. Howsomever, only ONE of the inquiries was accompanied by a crisp ten-dollar bill, and so it's the Gallup Organization that will this week reap the benefit of my wicked pack of cards. (More...)
High Availability Guinness Stress Test
All too often we forget the incredible depth of technology behind the weekly ritual of TNiPN@*. We tend to only become aware of the strategy of High Available Guinness (HAG) when it rises to the forefront during a complete and utter venue failure. Yet we should all be super grateful that this system exists. (More...)