[texhax] href{run... in pdf with acroread

Steve Schwartz s.schwartz at imperial.ac.uk
Fri Sep 9 19:05:25 CEST 2005


This is really an acrobat reader problem (bug?) but perhaps someone has
seen it. It appears to be new in acrobat reader 7.0 (and the quick fix
is to roll back to reader 6).

I use hyperref to insert run commands into a pdf using pdflatex, so that
I can show movies within beamer presentations. The syntax is:

\href{run:/movie_script.sh}{Click Here}

where movie_script.sh is a shell script to play the movie (I have it run
mplayer on my linux laptop, with various options).

On clicking the hyperlink, acroread 7.0 throws up a box complaining that
"Adobe Reader could not open 'movie_script.sh' because it is either not
a supported file type or because the file has been damaged..." On
clicking the OK button, the movie then plays! Not very slick.

Other pdf viewers either don't understand the run hyperref or aren't as
good at full screen display. xpdf throws up a dialog "About to execute
the command movie_script.sh &" and likewise forces an OK button to be
pressed. It also doesn't have a proper full-screen mode.

Maybe there's a way to change the syntax of the \href instruction to
change the way acroread handles it.

Any ideas?

Thanks
Steve

-- 
+-------------------------------------------------------------------+
Professor Steven J Schwartz      Phone: +44-(0)20-7594-7660
Space and Atmospheric Physics    Fax:   +44-(0)20-7594-7772
The Blackett Laboratory          E-mail: s.schwartz at imperial.ac.uk
Imperial College London          Office: Huxley 6M70 
London SW7 2BW, U.K.             Web: http://www.sp.ph.ic.ac.uk/~sjs
+-------------------------------------------------------------------+




More information about the texhax mailing list