Firefox: Embedded PDFs With Evince (Using Mozplugger)

by Andrew @http://www.webupd8.org

Evince embedded firefox

Mozplugger is a Firefox plugin that allows you to embed applications that handle various file types in Firefox.
In this post you’ll see how to get embedded PDF files in Firefox 3.6 and Firefox 4 (I’ve tested it in both) – like in Google Chrome (sort of) – using Evince, the Ubuntu default PDF reader.

Get embedded PDF files in Firefox using Evince

1. Install Mozplugger. Ubuntu users can simply click the button below:

Or copy/paste the following command in a terminal:

sudo apt-get install mozplugger

2. Now you must edit the mozpluggerrc file. To do this, press ALT + F2 and enter:

gedit /home/YOUR_USERNAME/.mozilla/mozpluggerrc

(In the above command, replace “YOUR_USERNAME” with your username. No, using “~” doesn’t work for the run dialog).

And in this file, paste the following:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
    repeat noisy swallow(evince) fill: evince "$file"

Now restart Firefox and try to open a PDF file. It should be embedded in Firefox using Evince if you’ve followed the steps correctly.

Thanks to hhlp @ AskUbuntu for the instructions

http://www.webupd8.org/2011/03/get-embedded-pdf-files-in-firefox-36-4.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s