Wednesday, February 18, 2026

Combining pdf files in linux command line using pdfunite

Before this, I have shared a way to combine pdf files using a tool called pdftk. You can refer the article explaining pdftk, here. The tool is fine, but I have found another tool which is smaller in size, and does the same thing. 


Presenting, pdfunite. This little tool is a one of the component inside a package called poppler-utils.

To install, in Ubuntu flavored linux:
$ sudo apt update && sudo apt install poppler-utils -y

and in Red Hat flavored linux:
$ sudo dnf install poppler-utils -y

To use the tool, simply run the tool, followed by the pdf files to be combined, and finally the output file name. For example, to combine file1.pdf and file2.pdf into result.pdf, use below command:
$ pdfunite file1.pdf file2.pdf result.pdf

Simple and easy. 

No comments: