4.53 How to include pdf pages as is in Latex

The number of pages of the pdf is first found, then a loop is used to load each page. Make sure to use \clearpage before, so that the first pdf page is on a new page and make sure to clear the page also after each page in the loop.

Here is an example

 
\usepackage{tikz} 
\usepackage{pgffor} 
.... 
 
\pdfximage{foo.pdf} 
\foreach \n in {1,...,\the\pdflastximagepages} 
{ 
\begin{tikzpicture}[remember picture,overlay] 
  \node[inner sep=0pt] at (current page.center) 
{ 
   \includegraphics[page=\n]{foo.pdf}}; 
   \end{tikzpicture} 
   \clearpage 
}
 

If you know the pdf file has only one page, then the following is enough

\clearpage 
\begin{tikzpicture}[remember picture,overlay] 
  \node[inner sep=0pt] at (current page.center) 
{ 
     \includegraphics[page=1,scale=0.9]{foo.pdf} 
}; 
\end{tikzpicture} 
\clearpage