# Appendix include pdf with working hyperlinks

I'm writing my report in latex and I have a few appendices(written by me also in latex, so source is available). I want to include these appendices in my report but have the page numbering of my report and of the appendices on the page. For now my solution was to import a pdf with a scale of 0.8 and it works flawless, see picture

In this picture you can see the page number of the appendix(20) and the page number of the report(80). But now i saw that the hyperlinks in this pdf are not working anymore, and I would love for them to work. I was thinking about importing the tex file but as I wrote all the appendices in different folders with a lot of tex files and their own appendices and image folders I don't really know a way of doing that.

I use one master tex file that imports every other tex file for every report. So maybe I can do something with that?

My goal is to include the appendices with working hyperlinks and pagenumbers of original report and appendix itself.

I look forward to a solution! Thanks in advance!

MWE:

\begin{document}[a4paper]

\begin{appendices}
\chapter{Plan van Aanpak}
\cleardoublepage
\label{Bijlage:PvA}
\includepdf[pagecommand={\thispagestyle{plain}},scale=0.95, pages=-]{../PlanVanAanpak/report.pdf}

\end{document}

• Hi @Blub21, can you share your Minimum Working Example piece of code for this? – tachyon Dec 12 '19 at 20:43
• I added a MWE. I hope it's enough? – Blub21 Dec 13 '19 at 10:58
• Short of using Adobe Acrobat to merge, I don't think it is possible to include a PDF with intact hyperlinks. The internal data structure related to the hyperlinks are gone because the PDF is treated as an image. – daleif Dec 13 '19 at 11:24
• @daleif ah that's a shame... then is it possible to import the main.tex files of every report and have the same result as the picture? – Blub21 Dec 13 '19 at 15:01
• Not understood, that question does not make any sense. – daleif Dec 13 '19 at 15:18

This only adds links to the original document by page number, assuming it is in the same directory.

\documentclass[a4paper]{article}
\usepackage{pdfpages}
\usepackage{tikzpagenodes}
\usepackage{hyperref}