Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto use kpdf for firefox?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fuchsmi
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 118

PostPosted: Sat Nov 06, 2004 4:47 pm    Post subject: howto use kpdf for firefox? Reply with quote

hi!
I'm using KDE with firefox. acroread isn't the best linux software so I want to use kpdf or kghostview as PDF viewer.
Is it possible to use kpdf as firefox plugin?

Michi
Back to top
View user's profile Send private message
Koroviev
n00b
n00b


Joined: 06 Nov 2004
Posts: 40
Location: Scotland

PostPosted: Sat Nov 06, 2004 6:01 pm    Post subject: Reply with quote

Mozplugger/plugger let you use external programs as plugins in mozilla/firefox. They work with xpdf and gv, I don't know about kpdf, kgv.
http://mozplugger.mozdev.org/index.html
http://fredrik.hubbe.net/plugger.html
Back to top
View user's profile Send private message
taurus
l33t
l33t


Joined: 21 Sep 2004
Posts: 657
Location: I need to be somewhere...

PostPosted: Sat Nov 06, 2004 8:15 pm    Post subject: Reply with quote

Try this

Edit -> Preferences -> Downloads

Then, hightlight xpdf and click on Change Action... Pick "Open them in this application:" and type in the one that your want or you can browse for it!

Let me know how it turns out. :)

taurus
Back to top
View user's profile Send private message
torklingberg
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2004
Posts: 86

PostPosted: Mon Dec 06, 2004 7:57 pm    Post subject: Reply with quote

I do not have xpdf in the list of file types. Just wav.
Back to top
View user's profile Send private message
SvenFischer
Veteran
Veteran


Joined: 05 Feb 2003
Posts: 1033
Location: Berlin

PostPosted: Fri Feb 18, 2005 3:06 pm    Post subject: Reply with quote

edit->preferences-> applications (in German called like little application)

enter a new "application/pdf" with the path to kpdf.
_________________
Core2Duo, 4GB RAM, AMD/ATI 4850 and nice person in front!
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Tue Mar 22, 2005 7:24 pm    Post subject: Reply with quote

could somebody explain this again? I can't get it working...
And the list in downloads is empty in my case...
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Wed Mar 23, 2005 6:36 am    Post subject: Reply with quote

SvenFischer wrote:
could somebody explain this again? I can't get it working...
And the list in downloads is empty in my case...
If you have an action defined in Edit -> Preferences -> Downloads -> Filetypes, by the name of PDF, then you can click on Change Action or you can remove that entry. If you do a "Change Action", then it will ask you to give the name of an application by which firefox should open the pdf file. Change that to kpdf.
If you decide to remove that entry, then the next time you click on a pdf file link, firefox will ask you what you want to do with that file, and you can specify the program name kpdf and also tick on "remember choice" or something similar.
HTH
Back to top
View user's profile Send private message
seidren
n00b
n00b


Joined: 29 Sep 2004
Posts: 9

PostPosted: Wed Mar 23, 2005 6:44 am    Post subject: Reply with quote

If you are trying to get the pdf file to be opened 'inside' firefox. Then you need mozplugger installed and you have to edit the /etc/mozpluggerrc file.

find the line where it says...

Code:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
        repeat swallow(documentShell) fill: acroread -geometry +9000+9000 +useFrontEndProgram "$file"


and add this line before the acroread line...

Code:

repeat swallow(kpdf) fill: kpdf "$file"


So the final change would be...

Code:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
        repeat swallow(kpdf) fill: kpdf "$file"
        repeat swallow(documentShell) fill: acroread -geometry +9000+9000 +useFrontEndProgram "$file"


Now restart firefox and everything should work fine. :D
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Wed Mar 23, 2005 5:52 pm    Post subject: Reply with quote

hey thank you! First I did not work so I commented out the lines below and now it works fine.

Code:

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

        repeat swallow(kpdf) fill: kpdf "$file"
#       repeat swallow(documentShell) fill: acroread -geometry +9000+9000 +useFrontEndProgram "$file"
#       repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file"
#       repeat noisy swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file"

_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
foxcub
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2002
Posts: 131
Location: North Carolina

PostPosted: Mon Mar 28, 2005 5:25 pm    Post subject: Reply with quote

Is there a way to make it so that the key presses are passed to kpdf? I've done the changes above, and kpdf shows up perfectly, and I can move through the document with a mouse, but I would like to be able to use the keys as well. Any way to do that?

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum