For my projectwork I'd like to add some attachments. I got this one:
\section*{A. Projektplan}
\includepdf[pages=-,scale=.85,pagecommand={}]{Anlagen/Projektplan.pdf}
\pagebreak
But Latex generates two sites instead of one side. On the first, there is only the heading. On the second there is only the included pdf file. How can I add those into one site?
Best Answer
The
\includepdf
command from the pdfpages package inserts the PDF as separate pages into the document. That way, you don't have to worry about margins, headers etc - it simply inserts the PDF pages 1:1 like they were.If you want to embed the PDF on the page, i.e. to have headers, respect the margins of the document etc. you don't need
\includepdf
, but you can use\includegraphics
. That way the PDF can be handeled like any other image. In your case that would beWith that, you can only insert one page at a time. For a multi-page PDF, you would therefore need multiple
\includegraphics
commands.Now there are several possibilities how to include the document:
\includegraphics
(probably using a for loop). Still, not a very nice solution.\includegraphics
to have the section heading, and include the rest with\pdfpages
.\pdfpages
(as you had before).