[WWW] Evince is a GTK+ PDF and PS viewer. Using [WWW] mozplugger you can embed it into Mozilla and/or Firefox.
First make sure you have Evince and mozplugger installed, otherwise install with:
sudo apt-get install evince mozplugger
Now edit /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 [WWW] MozPlugger is correctly installed in Firefox. Type about:plugins as address in Firefox. It shows a list of all installed plugins and [WWW] 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.
https://wiki.ubuntu.com/EvinceMozilla
[wiki]EvinceMozilla
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- leal
- 帖子: 1119
- 注册时间: 2005-08-29 14:49
- 来自: 杭州
- 联系:
Re: EvinceMozilla
[WWW] Evince是个GTK+ PDF和PS查看器。借助[WWW] mozplugger 你可以把它嵌入到Mozilla和/或Firefox浏览器中。
首先确保你已经安装了Evince和mozplugger,否则使用如下命令进行安装:
sudo apt-get install evince mozplugger
现在编辑/etc/mozpluggerrc:
sudo gedit /etc/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"
示例:
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"
故障处理
检查[WWW] MozPlugger是否已正确安装在Firefox上。在Firefox(地址栏)里把about:plugins作为地址输入。它会显示一个列表,包含所有已安装的plugins, [WWW] 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(插件)已正确安装。
https://wiki.ubuntu.com/EvinceMozilla
首先确保你已经安装了Evince和mozplugger,否则使用如下命令进行安装:
sudo apt-get install evince mozplugger
现在编辑/etc/mozpluggerrc:
sudo gedit /etc/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"
示例:
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"
故障处理
检查[WWW] MozPlugger是否已正确安装在Firefox上。在Firefox(地址栏)里把about:plugins作为地址输入。它会显示一个列表,包含所有已安装的plugins, [WWW] 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(插件)已正确安装。
https://wiki.ubuntu.com/EvinceMozilla
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系: