I need to include PDF pages with \includegraphics. I know there is the package \usepackage{pdfpages}. So this is what I have:
\begin{picture}(0,0)(75,272.5)
\put(0,0){\frame{\includegraphics[page=i]{pdf_file_name}}}
\end{picture}
I need those dimensions so that the PDF page covers the whole page it is included.
Now I want to add every page in a row of that PDF file. How can I create a loop which does that for me? Is there a key for the last page of the file? I have no idea about using \while \for or \if in this case. If you have any further documentation about it that would great.
Example:
\for i=1 to i=last_page_of_pdf_file
{
\begin{picture}(0,0)(75,272.5)
\put(0,0){\frame{\includegraphics[page=i]{pdf_file_name}}}
\end{picture}
\newpage
}
I asked somthing similar using \includepdf. - Link
pdfpages(maybe with thepicturecommandoption of the\includepdfcommand)? – Daniel Jul 23 '13 at 20:21fitpaperwould work and the PDF page covers the whole page. - (http://tex.stackexchange.com/questions/125135/insert-pages-from-a-pdf-file-to-fit-at-the-entire-page-using-includepdf) – Phil Jul 23 '13 at 20:29\includepdf[page={-},frame,pagecommand={},fitpaper]{file_name}. But as I have a customized class there is always a margin to the right and to the bottom of the page which shouldn't be there with the optionfitpaper. – Phil Jul 23 '13 at 20:40