Merge multiple pdf into one pdf without installing another programme
You can use Ghostscript to merge multiple pdf into one pdf.
To merge multiple pdf files into one single pdf file run:
$ gs -q \ -sPAPERSIZE=letter \ -dNOPAUSE \ -dBATCH \ -sDEVICE=pdfwrite \ -sOutputFile=merged.pdf \ 1.pdf \ 2.pdf
You can run
man gs to understand what each option does.
If you don’t know whether Ghostscript is installed on your operating system, on GNU/Linux, you can check by running in your terminal:
$ dpkg -s ghostscript
dpkg is a package manager; the option
–status) prints the status of a programme e.g. whether a program is installed. If so, you should see a line printing:
Status: install ok installed
You can also run:
$ dpkg -s ghostscript | grep installed
grep will print the line that matches keyword ‘installed’.
If you need to install Ghostcript run:
$ sudo apt install ghostscript