Build Date: Mon Sep 9 15:30:10 2024 UTC
All Bad People of the Future had shitty lives as Miserable People of the Past.
-- Johnnie Royale
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
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...)
SF Hippies Can't Get Their Act Together
The annual 420 Hippie Hill event in Golden Gate Park, where large crowds of hippies, wannabe hippies, and hippie poseurs drape themselves in tie dye t-shirts and gather on a hill on 4/20 to smoke weed, was cancelled this year because the organizers couldn't get their act together. (More...)
Mozart to be inducted into the Rock 'n Roll Hall of Fame
Joining such hard-rocking inductees as Abba, Chet Atkins, Nat King Cole, and Neil Diamond, the Rock 'n Roll Hall of Fame is proud to induct Wolfgang Amadeus Mozart. (More...)
C L A S S I C P I G D O G
Negative Nancy, touring the gin joints of the world, sent us her latest Spocktail creation, The Inattentive Beachcomber, which she concocted and field tested somewhere in South East Asia. (More...)
It was New Year's Eve and I wanted a signature drink I could hand to my guests. Something that they would accept with no fuss, drink quickly, and then want another. A drink simple enough that I could explain the recipe quickly -- thereby annointing each new guest as a bartender capable of making the drink -- and freeing me to enjoy myself. So I created The MAN-tini... (More...)
During a magnificent sunny day in a fast receding autumn, the Spock Science Monitor reporters once again blew the playa dust off of their computers and covered the 2002 Burning Man Decompression – held every year just east of Portola Hill in beautiful San Francisco. Both an afternoon and evening issues were released to the unsuspecting crowd of freaks attempting to in some small way experience the euphoria of the playa – if but for a brief afternoon far from the desolation of Northern Nevada. (More...)
This was an old standby back in my poor college days. Back then the goal was to get butt fucking wasted for as little money as possible. The problem was we hated dirt cheap beer - and some weekends, even Henry's was far more lucre then we could scratch together. So we invented Red. (More...)
Songs Of Love And Special Things
Well, dear reader, there's no denying it: Spring has sprung. The air is pungent with the fertile aroma of Romance. And you know what goes with Romance, don't you? That's right, Lover, porn. And not just any porn, but the kind you can sing along to. (More...)
Skunk School -- Learn Why Not To Keep Skunks As Pets
There is an alarming trend in pet purchasing habits this fall. People inspired by the WWII film, "Life is Beautiful" -- the one with that annoying Italian guy -- are buying descented skunks by the millions. (More...)