Friday, February 02, 2007

Combine several pdf files using Latex

pdfpages is a Tex package that can combine several pdf files using LaTex. Here is the usage:

\usepackage{pdfpages}
\begin{document}

\includepdf[pages=-]{1.pdf}
\includepdf[pages=-]{2.pdf}
\includepdf[pages=-]{3.pdf}
\end{document}

13 comments:

Unknown said...

I only get blank pages in my DVI file. :-(

Yu-Sung Su said...

Try to compile it using PdfLatex. Using Latex won't work!

Anonymous said...

Worked great...thanks!

Unknown said...

This is extremely useful! Thanks a lot!

Moustafa said...

Hi

My problem is I have so many .eps files so I have to run PS before I convert pdf. Is there a way to get around this?

Thanks
Mosti

Yu-Sung Su said...

Try to insert them using \includegraphics.

# in the preamble
\usepackage{graphicx}

# in the main body
\includegraphics{fig1.eps}
\includegraphics{fig2.eps}
\includegraphics{fig3.eps}

pklaisubun said...

Thank you so much.
I can use it with PdfLatex.
As you told, Latex will not work.

Sue said...

Eeeeeh!!! Muchas gracias.
Sí funciona! =D

Malte Wannerskog said...

Thanks! Really useful!

ardyanovich said...

you're the bomb. thanks for this

Dominic said...

This saved me so much time and effort -- many thanks!

Anonymous said...

Need to add something like
\documentclass[12pt,letterpaper]{scrartcl}

Works great! Thanks.

Unknown said...

This whole information is absolutely interesting. i like this blog because is easily understandable, and that is invaluable to the readers. Beyond all doubt La Tex will be very useful for everybody who want to prove it.
buy viagra