I am trying to insert a pdf document in LaTeX using \includepdf[pages={1}]{myfile.pdf}
But the inserted .pdf loses all its hyperreferences. Is there a way to retain hyperrefs while doing so?
myfile.tex
\begin{document}
\tableofcontents
\chapter{a}
\section{a}
\chapter{b}
\section{b}
\end{document}
Now when generated, myfile.pdf has clickable links to chapters and sections
maindoc.tex
\begin{document}
\tableofcontents
\chapter{abc}
\includepdf[pages={-}]{myfile.pdf}
\end{document}
But when included as .pdf, the links are lost.
\documentclass{...}and ending with\end{document}. – Sep 03 '14 at 11:28\chapter{a} \section{a}
\chapter{b} \section{b}
\end{document}
and main file says \begin{document} \tableofcontents
\chapter{abc} \includepdf[pages={-}]{myfile.pdf} \end{document}
But now the sections inside the pdf are no more clickable
– dk3896s Sep 03 '14 at 11:40xrpackage is of use – Sep 03 '14 at 11:43