[Tex/LaTex] Xelatex and hyperref to file

hyperrefxetex

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?

Best Answer

Since your sample document worked fine for me with an updated TeXLive, it is likely that your TeX distribution is not completely up-to-date.

By putting \listfiles in the preamble, you can generate a complete list of all of the packages loaded. In this case, the relevant package is clearly hyperref. The version current at the time of this answer is 6.82g. Check the version that you have, and if it is an earlier version, you should update it.

Related Question