Attaching a file with attachfile2 and the following code:
\documentclass{article}
\usepackage{attachfile2}
\begin{document}
\attachfile{test.txt}
\end{document}
generates a .pdf-file, which can be opened with macOS Preview (Version 11.0). However, clicking or double clicking on the shown PushPin does nothing. Opening the same document with Adobe Reader or Firefox, it works as expected.
Further information:
- Hardware: MacBookPro M1 (macOS Sonoma 14.2.1)
- IDE: PyCharm (2023.3.3) with TeXiFy-Plugin (0.9.3)
- Compiler: pdfLaTeX
- LaTeX Distribution: TeX Live
Any suggestion on how to attach files that can be opened with macOS Preview?