# Xelatex and hyperref to file

I would like to add link to video in the same folder where pdf document is stored. There is code:

\documentclass[a4paper,10pt]{article}

\usepackage{hyperref}

\begin{document}

\href{run:film.mp4}{Movie}

\end{document}

When I compile it with PDFLatex, then everything is okey, I click the link in PDF document and video player starts to play the movie. But when I compile it with Xelatex, then when I click this link in PDF document, there is written that:

path/file:film.mp4 No such file.

The problem is that word "file:" is inserted before file name. How to solve this problem?

• An equivalent document works for me with both XeLaTeX and pdfLaTeX. (TeXLive 2010 on a Mac). Is your TeX distribution up to date? – Alan Munn Jun 16 '11 at 22:41
• This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) -- I guess so. – scdmb Jun 17 '11 at 8:58
• all right I solved the problem, I used url package and it works for me. – scdmb Jun 17 '11 at 10:11
• So your example code wasn't actually sufficient to show the problem, which was caused by the specific URL that you were trying to link to. – Alan Munn Jun 17 '11 at 10:17
• Maybe your hyperref is old? Mine is 6.82g – Alan Munn Jun 17 '11 at 10:35