[Tex/LaTex] pdfpages & includepdf not working

pdfpages

I compiled the following file (through MiKTeX which I have just updated all files), and I do not get the junk.pdf file inserted.

\documentclass{report}
\usepackage{pdfpages}
\begin{document}
qwe
\includepdf[pages=-]{./junk.pdf}
\end{document}

The .log and junk.pdf file are there: junk1.log; junk.pdf

OK, yes it works with pdflatex, but I have to use latex->dvips->ps2pdf because of other constraints insertion of EPS figures). Beside, I do not know how to use the suggested lastpage option.

Using \includepdf[nup=2x2,frame,pages={1-13}]{./junk.pdf} I do correctly get 5 pages which should have included junk.pdf, but I get blank pages with a black dot in the center.

Best Answer

Note the warning issued by pdfpages in your .log:

Package pdfpages Warning: I cannot determine the number of pages of the
(pdfpages)                included document, while being in DVI mode. You
(pdfpages)                can use the option `lastpage' to give me a hint.

Being in DVI mode suggests you're compiling this using latex. You should compile using pdflatex.

If you have EPS figures that you want to include and feel that this forces you to use a latex->dvips->ps2pdf compilation sequence, consider reading the following posts:

Related Question