个人工具
登录
查看“EvinceMozilla”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“EvinceMozilla”的源代码
来自Ubuntu中文
←
EvinceMozilla
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
== EvinceMozilla == ---- 原文出处:https://help.ubuntu.com/community/EvinceMozilla 原文作者:UbuntuWiki 授权许可: 翻译人员:leal 校对人员:MillenniumDark 贡献者: 适用版本: 文章状态:完成 ---- [http://www.gnome.org/projects/evince/ Evince] is a GTK+ PDF and PS viewer. Using [http://mozplugger.mozdev.org/ mozplugger] you can embed it into Mozilla and/or Firefox. First make sure you have Evince and mozplugger installed, otherwise install with: [http://www.gnome.org/projects/evince/ Evince]是个GTK+ PDF和PS查看器。借助[http://mozplugger.mozdev.org/ mozplugger]你可以把它嵌入到Mozilla和/或Firefox浏览器中。 首先确保你已经安装了Evince和mozplugger,否则使用如下命令进行安装: <pre><nowiki> sudo apt-get install evince mozplugger </nowiki></pre> Now edit <code><nowiki>/etc/mozpluggerrc</nowiki></code>. 现在编辑/etc/mozpluggerrc: <pre><nowiki> sudo gedit /etc/mozpluggerrc </nowiki></pre> Look for these lines: 找到这些行: <pre><nowiki> application/pdf: pdf: PDF file application/x-pdf: pdf: PDF file text/pdf: pdf: PDF file text/x-pdf: pdf: PDF file </nowiki></pre> and these lines: 还有这些: <pre><nowiki> application/x-postscript: ps: PostScript file application/postscript: ps: PostScript file </nowiki></pre> then add the following line beloew them: 然后把下面这行添加到上述两行之后: <pre><nowiki> repeat noisy swallow(evince) fill: evince "$file" </nowiki></pre> Example: 示例: <pre><nowiki> 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" </nowiki></pre> == Troubleshooting == 故障处理 Check if [http://mozplugger.mozdev.org/ MozPlugger] is correctly installed in Firefox. Type <code><nowiki>about:plugins</nowiki></code> as address in Firefox. It shows a list of all installed plugins and [http://mozplugger.mozdev.org/ 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: <code><nowiki>Edit -> Preferences -> Downloads</nowiki></code> Remove also potential pdf plugin(s): <code><nowiki>Edit -> Preferences -> Download</nowiki></code>, then click on the <code><nowiki>plugins button</nowiki></code> and disable the pdf extension You need also to remove the plugins: '''Close Firefox''' The plugins are in that directory <code><nowiki>/usr/lib/mozilla-firefox/plugins/</nowiki></code>. then <pre><nowiki> rm ~/.mozilla/firefox/pluginreg.dat </nowiki></pre> Finally reinstall MozPlugger Now you should see the Plugin correctly installed with <code><nowiki>about:plugins</nowiki></code>. 检查[http://mozplugger.mozdev.org/ MozPlugger]是否已正确安装在Firefox上。在Firefox(地址栏)里把about:plugins作为地址输入。它会显示一个列表,包含所有已安装的plugins, [http://mozplugger.mozdev.org/ 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: [http://ubuntuforums.org/showthread.php?t=25685&page=1&pp=10 Saik0] & [http://nawer.sanspub.org/dotclear/index.php?2005/07/29/75-evince-mozplugger-et-firefox-ou-le-pdf-rapide BlogRabais] ---- [[category:CategoryDocumentation]]
返回至
EvinceMozilla
。