You are not logged in.

1

Tuesday, February 27th 2007, 1:07pm

KPDF - run external program

Hello everyone,

how can I allow KPDF to start external programs out of pdf files?
By default it won't allow this.

Thanks in advance,
Nikolai

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

2

Tuesday, February 27th 2007, 9:29pm

RE: KPDF - run external program

I'm afraid I don't exactly know what you're intending to do.
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

3

Wednesday, February 28th 2007, 5:37pm

You can embed links in your pdf documents.
i.e link to a shell script which starts mplayer.
I'm using this in talks to start external programs i.e. show a movie.

KPDF didn't allow this and babbled something of security concerns which is in fact correct but since I am the author of the document I think I'm able to trust myself. So I thought there was an option to enable this again.

4

Thursday, March 1st 2007, 12:12am

If you link at the movie itself, wouldn't kpdf start mplayer for you?
Help mee om KDE 3.5.5 in het Nederlands te vertalen

5

Thursday, March 1st 2007, 6:39pm

I don't think kpdf allows links at all.

6

Thursday, March 1st 2007, 8:23pm

Depends on the file, if i click on a url that points to an internet site, kpdf opens it with konqueror.
But it doesn't do that with every pdf file.
Help mee om KDE 3.5.5 in het Nederlands te vertalen

7

Friday, March 2nd 2007, 3:54pm

I just played around a bit :

KPDF seems only to have quirks with
\href{run:

Other linking methods i.e. mailto: or html work.

Direct linking with run: to the movie path
\href{run:somemovie.mpg}{Movie}
might work since kaffeine started but without the movie.

But generally this is not an option.
I want to give the movie special parameters i.e. resize it and
run with different fps. Therefore I need to run it through a script.

So does anyone know if the behaviour of kpdf can be changed or
is this a general shortcoming?

But nevertheless, thank you very much for your help so far.

8

Friday, March 2nd 2007, 7:10pm

you could ask the development team of kpdf/okular if this is possible, of if they plan to implement it.
You can reach the team using e-mail, mailinglist or irc.

check http://kpdf.kde.org/okular/contact.php for more information.
Help mee om KDE 3.5.5 in het Nederlands te vertalen

9

Sunday, March 4th 2007, 7:49pm

Thank you Rinse.
I wanted to do this in the first place but couldn't find the homepage
of kpdf.

10

Friday, April 27th 2007, 12:01pm

Quoted

Originally posted by RealityCheck
Direct linking with run: to the movie path
\href{run:somemovie.mpg}{Movie}
might work since kaffeine started but without the movie.

But generally this is not an option.
I want to give the movie special parameters i.e. resize it and
run with different fps. Therefore I need to run it through a script.

So does anyone know if the behaviour of kpdf can be changed or
is this a general shortcoming?


If you just want to run the mplayer with some options, you can have a config file for every single movie you want to play. Simply name it movie.mpg.conf if the movies name is movie.mpg, maybe you need to include use-filedir-conf=yes in .mplayer/config. You can provide all options to mplayer you like. Like fs=yes for fullscreen or vo=x11 for video output. Have also a look at the mplayer man page in the config section.

I use this for my presentation with kpdf and it works well.