We're not like the others.  We really hate you.

     
 

Displaying PDF Files in Mozilla
2005-11-08 18:50:52


Mozilla Annoyances
 
i'd rather be in a straightjacket than have to take this shit.
-- rotten elf

 

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.

Over.  End of Story.  Go home now.

gable@pigdog.org


comments powered by Disqus
 
     

 

T O P   S T O R I E S

PIGDOG JOURNAL CHRISTMAS ESSAY CONTEST - 20TH ANNIVERSARY EDITION!
by Mr. Bad

Fear and Loathing on Planet Arkuat
by Arkuat

Fixer-Upper
by Lenny Tuberose

Top Ten Reasons Morrissey Canceled a Show
by Baron Earl

12-04

El Destino

What teenaged girls really wanted to ask David Cassidy

10-09

El Destino

Frank Sinatra told Donald Trump to "go fuck himself"

07-05

El Destino

Whatever happened to JenniCam's Jennifer Ringley?

05-03

El Destino

Iíve Made Millions Selling Fake Plastic Hillbilly Teeth

05-03

Baron Earl

Fyre Fest Lawsuit

05-03

Baron Earl

US Government uses drones to shoot M&Ms at endangered ferrets

05-03

Baron Earl

When will the abuse of airline passengers stop?

05-03

El Destino

Hillbilly miner turned coder wants to make Kentucky into "Silicon Holler"

03-31

El Destino

86-year-old William Shatner cast in a new romantic comedy: 'Senior Moment'

03-19

El Destino

New ransomware taunts its victims with ASCII art of Spock and Kirk

01-26

Flesh

Alex Jones is Big, Fat, And Drunk in Public.

08-01

El Destino

Amazon's secret: incest in the Kindle ad?

08-01

El Destino

Slut Walk! Sexy feminist protest, or invaders from Mars?

04-25

Daemon Agent

The Quest for the Best Cheap Beer in a Can

04-25

Eugene Leitl

Beverage science at its finest

04-16

El Destino

YouTube punishes copyright offenders with animated pirate cat

04-09

Baron Earl

Poll shows that almost half of Mississippi's Republicans think interracial marriage should be illegal

04-07

Baron Earl

Commodore64 redux - now with Linux

04-06

El Destino

George Takei demonstrates why he should be playing Spider-Man

04-01

El Destino

High school students sacrifice chickens to improve their batting average

More Quickies...