The pdfpages package

Inserts whole pages of another PDF file into the document with \includepdf, one or several per sheet.

Loading the package

\usepackage{pdfpages}

\includegraphics places a PDF page as an image inside the text area. \includepdf gives each inserted page a page of its own and ignores the margins, so a scanned form, a signed declaration or a paper for the appendix keeps its original size.

Without options the command inserts the first page only. pages=- inserts all pages, pages={1,3-5} a selection. The inserted pages have no header and no page number unless you set pagecommand.

Main commands

\includepdf[pages=-]{figure.pdf}Inserts all pages of the file.
pages={1,3-5}Page 1 and pages 3 to 5.
nup=2x2Four pages on one sheet, in two columns and two rows.
pagecommand={\thispagestyle{plain}}Runs on every inserted page; here it prints the page number of the main document.
scale=0.9, frameShrinks the pages to 90 % and draws a frame around each.
landscapeTurns the sheet by 90° for pages in landscape format.
addtotoc={1,section,1,Title,label}Adds a table-of-contents entry for page 1: level section, depth 1, a title and a label.

Complete example

\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\section{Appendix}
The following pages come from another PDF file.

% all pages, each on a page of its own
\includepdf[pages=-]{figure.pdf}

% the first page twice on one sheet, with a frame and a page number
\includepdf[pages={1,1}, nup=1x2, frame, scale=0.9,
  pagecommand={\thispagestyle{plain}}]{figure.pdf}
\end{document}
Result
Page 1 of the compiled examplePage 1
Page 2 of the compiled examplePage 2
Page 3 of the compiled examplePage 3

Compiled with pdfLaTeX from TeX Live 2023.

Pitfalls

Related pages