I'm building an appendix, and there are a lot of PDF-documents. Each document should be its own appendix, that is each should be its own chapter.
The problem is that I want the PDF inserted right after the chapter-heading, but in practice its pushed to the next page.
\usepackage{pdfpages} % in config-file
\begin{appendices}
\chapter{Appendix name }
\label{app:label}
\includepdf[pages={-}]{appendices/mypdf.pdf}
\end{appendices}
That is: I get a page with a chapter-header, and no content, then a new page where the PDF is inserted. I haven't found any resources that explain this.
I looked in the answer given here, but that does not work either.
(\includepdf[scale=0.8,pages=1,pagecommand=\chapter{chapname}]{testpdf}
), gives the following result:
The other answer in the same question is to do the following (except it wants to do it section not chapter:
\includepdf[pages=1,pagecommand=\chapter{Chapter Heading}]{appendices/backend-README.pdf}
\includepdf[pages=2-,pagecommand={}]{appendices/backend-README.pdf}
Which gives the same result as above.

\includegraphics[options]{appendices/mypdf.pdf}?The options may be used as:
– Sunilkumar KS Nov 11 '15 at 12:33page=2,trim={5cm 3cm 3cm 3cm}My suggestions are: increasing the page/text height to fit both items or keep the Chapter heading in a separate page.
– Sunilkumar KS Nov 12 '15 at 07:30