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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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