Merge PDF Files Easily on CentOS

Did you scan a document and need to send it professionally? Do you want to combine multiple PDF files to store them as a single file? This article shows how to merge PDF files on CentOS. It should also work in other Red Hat based operating systems such as Red Hat, Fedora and CentOS Stream.

Install Poppler Utils Package

If you don’t already have it installed, install poppler-utils package using the following DNF command:

dnf install poppler-utils

This should install pdfunite and some other PDF utilities such as pdftohtml.

Usage of pdfunite

The tool to merge PDF files in Poppler Utils package is called “pdfunite”. Usage of pdfunite is pretty simple to use. Give all the PDF filenames you want to merge in the arguments and give the output filename as the last argument:

pdfunite file1.pdf file2.pdf file3.pdf out.pdf

The merged PDF file will automatically be created as “out.pdf”. Simple and quick.

Last words

Think about doing this using a PDF editor. Command line rocks!

It may be a bit difficult to find what package to use to join PDF files but once you know the tool it is really easy to merge PDF files using a single command.

Let us know in the comments if you experience any issues with the command.

References

See also