Merging pdf files
Posted: 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
On Debian, Ubuntu, Linux Mint:
On RHEL, CentOS:
(replace yum with dnf in Fedora)
Fast and easy and nothing to it
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
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
This thing is so fast and hassle free that it is wort a tip
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 popplerOn Debian, Ubuntu, Linux Mint:
Code: Select all
sudo apt-get install poppler-utilsOn RHEL, CentOS:
Code: Select all
sudo yum install poppler-utils(replace yum with dnf in Fedora)
Fast and easy and nothing to it

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 pdfMy 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
This thing is so fast and hassle free that it is wort a tip
