[texhax] \href to a file

Ardia David david.ardia at unifr.ch
Tue Oct 16 18:14:21 CEST 2007

Dear all,

I am using the hyperref package in my document, and want to open a (.pdf)

I can write : \url{file:///C:/myfile.pdf} and it works. However, I would
like to use the command \href{my link}{my text} for my purposes (this is
nicer). In this case, the command does not activate the link (it doesn't
recognize the extension of the file). How can I achieve that ?