I'm merging some PDFs using pdfpages and I would like to add some phantom bookmarks to make a clickable table of context on the side of my final PDF (I imagine using hyperref), a bit like this or like this. I've tried adding \section{section one}, etc., but I still don't get the usual interactive table of content in my final PDF. I also tried looking in pdfpages manual, but until now with no luck. Can someone here help me solve this?
Code (you need some random file_01.pdf and file_02.pdf),
\documentclass{article}
\usepackage{hyperref}
\usepackage{pdfpages}
\begin{document}
\pagenumbering{roman}
\includepdf[pages=1-7]{file_01.pdf}
\pagenumbering{arabic}
\includepdf[pages=8-]{file_01.pdf}
\includepdf[pages=-]{file_02.pdf}
\end{document}
pdfpages.pdf: When including pages of a PDF only the so called content stream of these pages is copied but no links. [...] Some links may be extracted and later reinserted by a package called pax which can be downloaded from CTAN. Have you checked outpax? – gernot Nov 01 '16 at 15:48paxis a program intended for preserving annotations across merges. I want to add my own (new) bookmarks/phantom sections to the merged PDF. – Eric Fail Nov 01 '16 at 16:34