GeneralPermission for Hyperlink to PDF File

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nikolapoljak
Posts: 9
Joined: Sun Feb 26, 2012 3:03 pm

Permission for Hyperlink to PDF File

Post by nikolapoljak »

I am using the hyperref package to link to outside PDF files from my file. Here is a minimal example.

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage{hyperref}

\begin{document}
  This is a test link. \href{Supertabular.pdf}{testLink}
\end{document}
In the output, when clicking on the link in the PDF I get the message.
The file “supertabular.pdf” couldn’t be opened because you don’t have permission to view it.
But I do have permissions (set to 777 on this particular file). Further, if the file is already open, then clicking the link in my output correctly switches to the right file (in this case "supertabular.pdf"). Seems that it can see it, it can switch to it, but it can not open it. Tried it with other files as well, still won't work. It is kind of a mistery to me, driving me crazy. Couldn't find any mention of this kind of a problem online. The compilation output is attached.

I work on OS X with MacTeX, my PDF viewer is Preview. I repaired the disk permissions just in case that might be an issue. Please help, thanks!
Attachments
Untitled.log
(10.03 KiB) Downloaded 371 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply