Luke Oliff.

TIL: Merging PDF Files With pdfunite

·TIL·1 min read·Luke Oliff

Documentation lives in multiple PDFs. pdfunite combines them into one file.

pdfunite intro.pdf setup.pdf api-reference.pdf complete-docs.pdf

List the input files in order. The last argument is the output file. One command, no Adobe subscription.

pdfunite chapter-*.pdf book.pdf

Use glob patterns for large collections. Order depends on how your shell expands the wildcard.

Is pdfunite on macOS?

brew install poppler

pdfunite ships with the poppler PDF utilities.

Can I extract pages instead?

Use pdfseparate from the same package to split a PDF into individual page files.