(for reference the Adobe Knowledge base entry about pdf from html linking)
Checkout section 4.1 in Hypertext capabilities with pdfLaTeX (F. Garcia, TUGBoat, Vol. 28, No. 1, 2007), which describes the hyperdef and hyperref commands.
Just a small example:
src.tex:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{Source a}
\hyperdef{cat1}{link1}
Foo bar
\hyperref{dest.pdf}{cat1}{link1}{Link 1}
\section{Source b}
\hyperdef{cat2}{link2}
Fu baz
\hyperref{dest.pdf}{cat2}{link2}{Link 2}
\end{document}
dest.tex:
\documentclass{article}
\usepackage{lipsum}
\usepackage{hyperref}
\begin{document}
\section{One}
\lipsum
\section{Two}
\hyperdef{cat1}{link1}
Fill paragraph.
\hyperref{src.pdf}{cat1}{link1}{Back 1}
\lipsum
\section{Three}
\hyperdef{cat2}{link2}
Fill paragraph.
\hyperref{src.pdf}{cat2}{link2}{Back 2}
\lipsum
\end{document}
Create the PDFs via:
$ pdflatex src
$ pdflatex dest
Now you can try to jump back and forth between the both documents in your favorite PDF Viewer.
(Tested it with Okular under Ubuntu 10.04)
gsto "compress" the PDF the links can be gone. One can easily useextractpdfmarkto workaround the issue. See https://bugs.ghostscript.com/show_bug.cgi?id=695760 – aleb Sep 05 '23 at 09:43