Skip to main content


Showing posts from August, 2008

Howto merge pdf files in Linux

Many times we download a number of pdf files which are supposed to be part of a single file. This is the case with the lecture notes that we download from some professors website. And it is desirable to have a single pdf file instead of bits and pieces of the chapters. The following procedure will explain howto acheive this.(Linux only)

You need to have ghostscript installed in your linux box.

First goto the folder and ls only the needed pdf files like -
ls -x 0*.pdf
This will create a list of files in sequential format, easy to select. All that is needed is to select each line and middle click paste after the command
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf

example :-

If gs is installed then type in command line the following command -

$ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf 00.pdf 01.pdf 02.pdf 03.pdf 04.pdf 05.pdf 06.pdf 07.pdf 08.pdf 09.pdf 10.pdf 11.pdf 12.pdf 13.pdf 14.pdf 15.pdf

The bold ones the pdf files which …