Combine PDFs into single file in LaTeX

Occasionally, you will probably need to combine a set of PDF files into a single PDF file

LaTeX can do it – But it can be a pain to get the correct appearance and find the correct API parameters for scaling, margins, number of pages per PDF, etc. Below is a quick snippet that should just work.

LaTeX Code:

\documentclass[]{article}

\usepackage{pdfpages}
\begin{document}

\includepdf[pages={1-},scale=1]{1.pdf}
\includepdf[pages={1-},scale=1]{2.pdf}
\includepdf[pages={1-},scale=1]{3.pdf}
% -- add more pdf files here --

\end{document}

If you don’t have a LaTeX compiler, you can probably just get away with https://www.pdfmerge.com instead, if < 15 mb.

hth.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.