I want to make a normal section, shown in the table of contents with hyperref enabled, but instead of section heading I want to insert a PDF. I already tried to just hide the section heading by setting it's size to 0pt but this resulted in a blank page followed by my PDF.
For a little bit more context: The PDF contains a bill of materials wich has to be visible in the table of contents with the correct page number linked.
Including the PDF as an image also isn't an option because the document has to be searchable.
My code currently looks like this:
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[a4paper,top=3cm,bottom=2.5cm,left=2.5cm,right=2.5cm,marginparwidth=1.75cm]{geometry}
\usepackage{hyperref}
\usepackage{pdfpages}
\begin{document}
\tableofcontents
\newpage
\section{Bill of Materials}
\includepdf{billofmaterials.pdf}
\end{document}
\includegraphics(it still gets included as searchable pdf text not as an image) – David Carlisle Jan 06 '22 at 08:46