tags:

views:

180

answers:

3

I am trying to insert a PDF or doc file as an appendix in my latex file. Do you know how I can do this?

A: 
\includegraphics{myfig.pdf}
dagray
yes i know how to include a figure.pdf but the file i have to include has more then 1 page.
Guido
+11  A: 

use the pdfpages package.

\usepackage{pdfpages}

\includepdf[pages={1}]{myfile.pdf}

Mica
To be clear, you need to specify the pages you wish to include, i.e. `\includepdf[pages={1,3,5}]{myfile.pdf}` would include pages 1, 3, and 5 of the file. To include the entire file, you specify `pages={-}`, where `{-}` is a range without the endpoints specified which default to the first and last pages, respectively.
rcollyer
this is true... but RTFM! As a tech writer I can't say anything else.
Mica
A: 

I don't think there would be an automatic way. You might also want to add a page number to the appendix correctly. Assuming that you already have your pdf document of several pages, you'll have to extract each page first of your pdf document using Adobe Acrobat Professional for instance and save each of them as a separate pdf file. Then you'll have to include each of the the pdf documents as images on an each page basis (1 each page) and use newpage between each page e,g,

\appendix
\section{Quiz 1}\label{sec:Quiz}
\begin{figure}[htp] \centering{
\includegraphics[scale=0.82]{quizz.pdf}}
\caption{Experiment 1}
\end{figure}  

\newpage
\section{Sample paper}\label{sec:Sample}
\begin{figure}[htp] \centering{
\includegraphics[scale=0.75]{sampaper.pdf}}
\caption{Experiment 2}
\end{figure}

Now each page will appear with 1 pdf image per page and you'll have a correct page number at the bottom. As shown in my example, you'll have to play a bit with the scale factor for each image to get it in the right size that will fit on a single page. Hope that helps...

yCalleecharan