Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
Another guess: Maybe the PDF file is broken. You should upload it somewhere, we can download it. –  Speravir Apr 17 '12 at 2:34
    
Welcome to TeX.SE. Thanks for providing a MWE, that is very helpful. Does the junk.pdf exist in the current directory? –  Peter Grill Apr 17 '12 at 2:49

2 Answers 2

You can use the option lastpage as in,

\includepdf[lastpage=12]{Appendices/pdf_that_is_12_pages_long.pdf}

instead of specifying which pages.

share|improve this answer
1  
One cannot use \includepdf when compiling the document with latex that accepts only EPS files for graphic inclusion. –  egreg Sep 26 '12 at 22:24

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:

share|improve this answer
    
Hum, using\includepdf[nup=2x2,frame,pages={1-13}]{./junk.pdf} I do correctly get 5pages which should have included junk.pdf, but I get blank pages with a black dot in the center –  victor Apr 17 '12 at 5:09
    
@victor: It seems like one of the linked posts (first) answered your question in terms of EPS figure inclusion while using pdflatex. As such, using pdflatex is the way to go and surely solved your problem. Please consider accepting this answer to close this question as solved. –  Werner Apr 17 '12 at 6:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.