Skip to content

Instantly share code, notes, and snippets.

@cicirello
Last active May 10, 2021 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cicirello/17a71ab3905a9384936019237c3f23fa to your computer and use it in GitHub Desktop.
Save cicirello/17a71ab3905a9384936019237c3f23fa to your computer and use it in GitHub Desktop.
Combine multiple pdfs using pdflatex

Combine multiple pdfs using pdflatex

Purpose

To combine multiple pdf files into a single pdf file

Usage

  1. Edit CombinePDFs.tex with the name of the pdfs you wish to combine.
  2. Place in same directory with the pdfs you are combining.
  3. Run pdflatex CombinePDFs.tex
\documentclass[11pt,letterpaper]{article}
\usepackage[final]{pdfpages}
\begin{document}
\includepdf[pages=-]{file1.pdf}
\includepdf[pages=-]{file2.pdf}
\includepdf[pages=-]{file3.pdf}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment