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 pictureExample appendix page

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!



\chapter{Plan van Aanpak}
\includepdf[pagecommand={\thispagestyle{plain}},scale=0.95, pages=-]{../PlanVanAanpak/report.pdf}

  • 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
  • 2
    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.



  \tikz[overlay, remember picture]{%
    \path (current page text area.south) ++(0pt,7mm) % offset by trial and error


\includepdf[pagecommand={\thispagestyle{plain}\addlink},scale=0.95, pages=-]{test5.pdf}

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.