EvinceMozilla

来自Ubuntu中文
Oneleaf留言 | 贡献2007年5月30日 (三) 18:38的版本 (新页面: == EvinceMozilla == ---- 原文出处:https://help.ubuntu.com/community/EvinceMozilla 原文作者:UbuntuWiki 授权许可: 翻译人员:leal 校对人员:MillenniumDark ...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

EvinceMozilla


原文出处:https://help.ubuntu.com/community/EvinceMozilla

原文作者:UbuntuWiki

授权许可:

翻译人员:leal

校对人员:MillenniumDark

贡献者:

适用版本: 文章状态:完成


Evince is a GTK+ PDF and PS viewer. Using mozplugger you can embed it into Mozilla and/or Firefox.

First make sure you have Evince and mozplugger installed, otherwise install with:

Evince是个GTK+ PDF和PS查看器。借助mozplugger你可以把它嵌入到Mozilla和/或Firefox浏览器中。

首先确保你已经安装了Evince和mozplugger,否则使用如下命令进行安装:

sudo apt-get install evince mozplugger

Now edit /etc/mozpluggerrc.

现在编辑/etc/mozpluggerrc:

sudo gedit /etc/mozpluggerrc

Look for these lines:

找到这些行:

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

and these lines:

还有这些:

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

then add the following line beloew them:

然后把下面这行添加到上述两行之后:

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

Example:

示例:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
	repeat noisy swallow(evince) fill: evince "$file"
	repeat swallow(acrobatreader) fill: acroread -geometry +9000+9000 +useFrontEndProgram -tempFileTitle acrobatreader "$file"
	repeat noisy swallow(win) fill: xpdf -g +9000+9000 "$file"
	repeat noisy swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file"

application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
	repeat noisy swallow(evince) fill: evince "$file"
	repeat noisy swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file"
	repeat swallow(Pageview) fill: pageview "$file"

Troubleshooting

故障处理 Check if MozPlugger is correctly installed in Firefox. Type about:plugins as address in Firefox. It shows a list of all installed plugins and MozPlugger 1.6.0 must be there with a list of extensions.

If that's not the case: Remove the automatic action for PDF files in Firefox: Edit -> Preferences -> Downloads

Remove also potential pdf plugin(s): Edit -> Preferences -> Download, then click on the plugins button and disable the pdf extension

You need also to remove the plugins:

Close Firefox

The plugins are in that directory /usr/lib/mozilla-firefox/plugins/.

then

rm ~/.mozilla/firefox/pluginreg.dat

Finally reinstall MozPlugger

Now you should see the Plugin correctly installed with about:plugins.

检查MozPlugger是否已正确安装在Firefox上。在Firefox(地址栏)里把about:plugins作为地址输入。它会显示一个列表,包含所有已安装的plugins, MozPlugger 1.6.0和一个扩展列表必须处在其中。

如果实际结果并非如此:那么移除Firefox里针对PDF文件的自动动作:Edit -> Preferences -> Downloads(编辑->选项->下载)

还要移除可能的pdf插件:Edit -> Preferences -> Download,然后单击plugins(插件)按钮,禁用pdf扩展。

你还需移除的plugins(插件):

关闭Firefox

所有plugins(插件)都位于目录/usr/lib/mozilla-firefox/plugins/中。

然后:

rm ~/.mozilla/firefox/pluginreg.dat

最后重新安装MozPlugger

这下你用about:plugins应该能看到相应Plugin(插件)已正确安装。

Credits: Saik0 & BlogRabais