From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 27 09:21:09 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D37A116A418 for ; Sun, 27 Jan 2008 09:21:09 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0B82D13C467 for ; Sun, 27 Jan 2008 09:21:07 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m0R9L0Z3016637; Sun, 27 Jan 2008 09:21:01 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.4.3 smtp.infracaninophile.co.uk m0R9L0Z3016637 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1201425661; bh=t9JhFyPc6HKTTw M+xMupItT1c1AbNu4b/pgdZgDrSP0=; h=Message-ID:Date:From:Reply-To: Organization:User-Agent:MIME-Version:To:CC:Subject:References: In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<479C4CFC.1 0402@infracaninophile.co.uk>|Date:=20Sun,=2027=20Jan=202008=2009:21 :00=20+0000|From:=20Matthew=20Seaman=20|Reply-To:=20freebsd-questions=20|Organization:=20Infracaninophile|User-Agent:=20Thunderbird=202.0 .0.9=20(X11/20080122)|MIME-Version:=201.0|To:=20KAYVEN=20RIESE=20|CC:=20freebsd-hackers@freebsd.org|Subject:=20Re:=20e mbedding=20pdf=20viewers=20in=20firefox|References:=20<86068e730801 251451n650b7abcyf3d008fddec2c33f@mail.gmail.com>=09<86y7acmhrg.fsf@ ds4.des.no>=09<86068e730801261324j33b7ae8cyc8faec5141f7555a@mail.gm ail.com>=20|In-Re ply-To:=20|X-Enig mail-Version:=200.95.0|Content-Type:=20text/plain=3B=20charset=3DIS O-8859-1|Content-Transfer-Encoding:=208bit; b=HnTa/h62GmZUbDjkC9kyL DyqLA4CCuNr8UJSNBTEaFmMppfnj2h/lkcbUgUrhTMVFY3T97uvgLNmiiRIREjZ06yT bUyIP0cuM4d5pJO12WIe338njrPyS42fsOlGPL8np5GVghiMyE9FpdY3f/U8/hWh8Ij banpWQe3cXVT3nGo= Message-ID: <479C4CFC.10402@infracaninophile.co.uk> Date: Sun, 27 Jan 2008 09:21:00 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.9 (X11/20080122) MIME-Version: 1.0 To: KAYVEN RIESE References: <86068e730801251451n650b7abcyf3d008fddec2c33f@mail.gmail.com> <86y7acmhrg.fsf@ds4.des.no> <86068e730801261324j33b7ae8cyc8faec5141f7555a@mail.gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 27 Jan 2008 09:21:01 +0000 (GMT) X-Virus-Scanned: ClamAV 0.92/5572/Sun Jan 27 05:16:23 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-hackers@freebsd.org Subject: Re: embedding pdf viewers in firefox X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2008 09:21:09 -0000 -----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@... rather than freebsd-hackers@... 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-----