September 24, 2022

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 \ 
-dBATCH \ 
-sDEVICE=pdfwrite \ 
-sOutputFile=merged.pdf \
1.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 -s (or –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

personal computing command-line interface (cli) gnu linux ghostscript trisquel

No affiliates, No (Google) Analytics. © 2016-2023 Content is licensed under CC BY-NC-SA 4.0 .