Document ClassesHow do I merge two pdf by the includepdf command

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
akira32
Posts: 45
Joined: Tue Nov 13, 2007 10:32 am

How do I merge two pdf by the includepdf command

Post by akira32 »

How do I merge two pdf by the includepdf command?
My preamble code as below:

Code: Select all

\documentclass{article} 
\usepackage{pdfpages}
\begin{document}
\includepdfset{pages=-} 
\includepdf{mycover.pdf}
\includepdf{content.pdf}
\end{document}
[/color]

But when I compile the preamble, it appear some error messages as below:

Package pdfpages Warning: I will use a dummy \ includepdf command whiich will NOT insert any pages, becuase you are producing DVI output.

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: How do I merge two pdf by the includepdf command

Post by Stefan Kottwitz »

Hi,

the pdfpages packages works only with pdflatex. If you compile to dvi \includepdf cannot work.
Use pdflatex (PDFTeXify or PDFLaTeX button or the LaTeX=>PDF output profile) to fix it.

Stefan
LaTeX.org admin
akira32
Posts: 45
Joined: Tue Nov 13, 2007 10:32 am

Re: How do I merge two pdf by the includepdf command

Post by akira32 »

Stefan,thank you very much!
Post Reply