[Tex/LaTex] \includepdf only shows first page

pdfpages

Using XeLaTeX I am trying to add a PDF to my file. Only the first page the PDF is included in the output file.

The following MWE refers to a PDF I created using Apple's TextEdit and 'Save as PDF' from the Print dialog. The contents are simply: 'Page 1', 'Page 2' etc. on each page.

\documentclass{article}

\usepackage{pdfpages}

\title{Minimal Working Example}
\date{}
\author{Author}

\begin{document}
\maketitle

\section{Section 1}
Content

\includepdf{test-pdf}

\end{document} 

Best Answer

According to the pdfpages documentation, this is the default behavior when including pdfs with \includepdf. In order to get all the pages, you need to type:

\includepdf[pages=-]{test-pdf}