embedding pdf viewers in firefox

Matthew Seaman m.seaman at infracaninophile.co.uk
Sun Jan 27 01:21:09 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

KAYVEN RIESE wrote:

> as you can see, i am running the freeBSD OS.  i have a gnome desktop.  i
> usually run firefox browser (i note that gnome has built in browser
> called ephinany).  i am dissatisfied with the fact that if i browse to a
> webpage that contains pdf content that i am  forced to save the file.

Verb. Sap.  It's best to start a new thread when you have a new subject.
Changing the subject on an old thread will tend to hide your message
quite effectively in some mail clients, plus hijacking someone else's
thread is rude at best.  This is also a subject more suitable for
freebsd-questions at ... rather than freebsd-hackers at ...

Anyhow, if you are running native FreeBSD firefox, then simply install
print/acroread7.  This includes a browser plugin that has the effect you
desire:

/usr/local/Adobe/Acrobat7.0/ENU/Browser/intellinux/nppdf.so

In order to get firefox to load the plugin it needs to be wrapped in a
small amount of translation code and made available in the appropriate
directory.  To do that install the www/nspluginwrapper port.  Then run:

   % nspluginwrapper -v -a -i

as your own UID.  This will create objects in ${HOME}/.mozilla/plugins

Stop and restart firefox.  Type about:plugins into the URL bar and it should
now show (amongst others):

   Adobe Reader 7.0

    File name: npwrapper.nppdf.so
    The Adobe Reader plugin is used to enable viewing of PDF and FDF files from within the browser.

Et voilà.

	Cheers,

	Matthew


- -- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHnEz88Mjk52CukIwRCKduAJ4v7lCxGbsiCjyzLqGb+dRKtRCeJwCdH1rD
iycULv8rmO1PSozE2xRkWBs=
=MzpM
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list