“UbuntuHelp:EvinceMozilla”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/EvinceMozilla}} {{Languages|UbuntuHelp:EvinceMozilla}} [http://www.gnome.org/projects/evince/ Evince] is a GTK+ PDF and PS viewer. Using [http://m...) |
小 |
||
(未显示同一用户的5个中间版本) | |||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:EvinceMozilla}} | {{Languages|UbuntuHelp:EvinceMozilla}} | ||
[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. | [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: | First make sure you have Evince and mozplugger installed, otherwise install with: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install evince mozplugger | sudo apt-get install evince mozplugger | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Now edit <code><nowiki>/etc/mozpluggerrc</nowiki></code>. | Now edit <code><nowiki>/etc/mozpluggerrc</nowiki></code>. | ||
<pre><nowiki> | <pre><nowiki> | ||
gksudo gedit /etc/mozpluggerrc | gksudo gedit /etc/mozpluggerrc | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Look for these lines: | Look for these lines: | ||
<pre><nowiki> | <pre><nowiki> | ||
第20行: | 第17行: | ||
text/x-pdf: pdf: PDF file | text/x-pdf: pdf: PDF file | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
and these lines: | and these lines: | ||
<pre><nowiki> | <pre><nowiki> | ||
第26行: | 第22行: | ||
application/postscript: ps: PostScript file | application/postscript: ps: PostScript file | ||
</nowiki></pre> | </nowiki></pre> | ||
− | + | If the lines below are already in the config file under the PDF and PS sections, then you should be set. Otherwise, add the following line below them: | |
− | then add the following line below them: | + | |
<pre><nowiki> | <pre><nowiki> | ||
repeat noisy swallow(evince) fill: evince "$file" | repeat noisy swallow(evince) fill: evince "$file" | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Example: | Example: | ||
<pre><nowiki> | <pre><nowiki> | ||
第49行: | 第43行: | ||
repeat swallow(Pageview) fill: pageview "$file" | repeat swallow(Pageview) fill: pageview "$file" | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
== Troubleshooting == | == 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. | 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: | If that's not the case: | ||
Remove the automatic action for PDF files in Firefox: | Remove the automatic action for PDF files in Firefox: | ||
<code><nowiki>Edit -> Preferences -> Downloads</nowiki></code> | <code><nowiki>Edit -> Preferences -> Downloads</nowiki></code> | ||
− | |||
Remove also potential pdf plugin(s): | 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 | <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: | You need also to remove the plugins: | ||
− | |||
'''Close Firefox''' | '''Close Firefox''' | ||
− | |||
The plugins are in that directory <code><nowiki>/usr/lib/mozilla-firefox/plugins/</nowiki></code>. | The plugins are in that directory <code><nowiki>/usr/lib/mozilla-firefox/plugins/</nowiki></code>. | ||
− | |||
then | then | ||
<pre><nowiki> | <pre><nowiki> | ||
rm ~/.mozilla/firefox/pluginreg.dat | rm ~/.mozilla/firefox/pluginreg.dat | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Finally reinstall MozPlugger | Finally reinstall MozPlugger | ||
− | |||
Now you should see the Plugin correctly installed with <code><nowiki>about:plugins</nowiki></code>. | Now you should see the Plugin correctly installed with <code><nowiki>about:plugins</nowiki></code>. | ||
− | |||
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] | 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] | ||
− | |||
---- | ---- | ||
You can get a Chinese translation of this article [http://wiki.ubuntu.org.cn/EvinceMozilla here]. | You can get a Chinese translation of this article [http://wiki.ubuntu.org.cn/EvinceMozilla here]. | ||
---- | ---- | ||
− | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年11月17日 (二) 19:05的最新版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
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:
sudo apt-get install evince mozplugger
Now edit /etc/mozpluggerrc
.
gksudo 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
If the lines below are already in the config file under the PDF and PS sections, then you should be set. Otherwise, add the following line below 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
.
Credits: Saik0 & BlogRabais
You can get a Chinese translation of this article here.