Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed mozplugger and created the file mozpluggerrc with the following content according to this post but when I open a .pdf it opens in a separate evince window.

is there a way I can truly embed it in Firefox like the chrome pdf reader?

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
application/x-dvi: dvi: DVI file
    : evince $file
share|improve this question
add comment

1 Answer 1

up vote 13 down vote accepted

Evince is a GTK+ PDF and PS viewer to replace gpdf/xpdf/acroread and ggv, and it's open source. Using mozplugger you can embed all sorts of stuff into Mozilla and/or Firefox like media players and openoffice.

First make sure you have Evince and mozplugger installed.

Now open up~/.mozilla/mozpluggerrc in your favorite text editor. Here's how to do it with gedit Press Alt + Ctrl + T and paste

gedit ~/.mozilla/mozpluggerrc

Wherever you see this:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file

and

application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file

add this on the next line:

repeat noisy swallow(evince) fill: evince "$file"

Close Firefox and Thats it!

HERE mine :

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"

# Also load the default configuration
sinclude(/etc/mozpluggerrc)

Note : this plug-ins embed MPlayer Totem OpenOffice ... Too

share|improve this answer
    
Thanks it worked. –  Alaukik Feb 17 '11 at 14:06
1  
This not works to me. :-( Firefox opens a new tab with PDF url and it opens a dialog to open PDF with evince/save/... –  Simón Mar 14 '11 at 19:14
    
@Simón Try to install mozplugger package. –  wakeup Apr 27 '13 at 17:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.