Merging pdf files

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules:
User avatar
Posts: 9320
Joined: 14 Mar 2010, 16:34

Merging pdf files

Postby viking60 » 25 Aug 2020, 11:57

Often I Scan several documents and need them to be merged to one document so I do not have to send 10 attachments.

I tried to install pdfdsam - which should be an easy to use GUI - but it did not fire and complained about the wrong Java version or something along those lines.

So I decided to go back to the good old CLI and installed poppler:

In Arch/Manjaro

Code: Select all

sudo pacman -S poppler

On Debian, Ubuntu, Linux Mint:

Code: Select all

sudo apt-get install poppler-utils

On RHEL, CentOS:

Code: Select all

sudo yum install poppler-utils

(replace yum with dnf in Fedora)

Fast and easy and nothing to it :tux5:

Time to merge my documents to one pdf then:

Go to the directory were your documents are (where your scanner has stored them) :
cd scannerdocs( or whatever)
and type

Code: Select all

pdfunite doc doc0002 doc0003 doc0004 output pdf

My scanner does not give the pdf extension so I simply type doc and doc0002 etc not doc.pdf or doc0002pdf and so on.
I have named the output file; output.pdf (here I type pdf).

The document is created so fast that I wondered if everything went like it should so I had a look in the scannerdocs directory and opened output pdf and it was all there nicely merged :jackpot

This thing is so fast and hassle free that it is wort a tip +1
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
Posts: 8634
Joined: 14 Mar 2010, 20:29

Re: Merging pdf files

Postby dedanna1029 » 03 Oct 2020, 02:46

I've heard that poppler is good stuff!
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."

Return to “Tips & Tricks”