如何在Firefox 4中嵌入evince?


9

根据这篇文章,我安装了mozplugger并使用以下内容创建了文件mozpluggerrc,但是当我打开.pdf时,它将在单独的evince窗口中打开。

有什么办法可以像chrome pdf阅读器那样将其真正嵌入Firefox?

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

Answers:


13

Evince是一个GTK + PDF和PS查看器,可以替代gpdf / xpdf / acroread和ggv,并且它是开源的。使用mozplugger,您可以像媒体播放器和openoffice一样将各种东西嵌入Mozilla和/或Firefox。

首先,请确保您已安装Evince和mozplugger。

现在,~/.mozilla/mozpluggerrc在您喜欢的文本编辑器中打开。这是使用gedit进行操作的方法按Alt+ Ctrl+ T并粘贴

gedit ~/.mozilla/mozpluggerrc

无论您在哪里看到此内容:

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"

关闭Firefox,就是这样!

我的:

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)

注意:此插件嵌入MPlayer Totem OpenOffice ...太


1
这对我不起作用。:-( Firefox打开一个带有PDF URL的新选项卡,并打开一个对话框以使用evince / save / ...打开PDF
JuanSimón

@Simón尝试安装mozplugger软件包。
唤醒
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.