using pdfunite

(just testing rss feed!)

Photo by Gabriel Heinzer on Unsplash

If you’re using Linux and looking for a quick way to merge PDF files pdfunite come in handy. It’s a simple command-line tool that gets the job done fast.

In this post, I’ll walk you through:

🛠️ Installing pdfunite

Here’s how to install it on Ubuntu: Install the poppler-utils package

sudo apt update
sudo apt install poppler-utils

Once installed, you can confirm it’s available by running:

pdfunite --version

🧩 Merging PDFs with pdfunite

Here’s the basic syntax:

pdfunite input1.pdf input2.pdf input3.pdf output.pdf

Example:

Let’s say you have three PDFs named chapter1.pdf, chapter2.pdf, and chapter3.pdf. To merge them into a single file called book.pdf, run:

pdfunite chapter1.pdf chapter2.pdf chapter3.pdf book.pdf

That’s it! book.pdf will now contain all three chapters in order.

Important Notes:

pdfunite "My File 1.pdf" "My File 2.pdf" "Final Output.pdf"

💡 Bonus Tips

Merge All PDFs in a Folder

You can use a shell wildcard or command substitution:

pdfunite $(ls *.pdf | sort) output.pdf

⚠️ Be cautious with this — make sure the sort order is what you want!

Rename and Backup Originals

If you like you can create a backup and merge automatically:

mkdir backup
cp *.pdf backup/
pdfunite *.pdf merged.pdf

Got any favorite Linux PDF tips? Drop them in the comments or reach out — I love learning new tricks!