One thing which I find myself doing on a regular basis is combining multiple PDFs into a single file – e.g. scanned receipts with a digital expenses form. This is a fairly simple task in Linux, and can be achieved with a single command line invocation.
On most Linux systems the only package you should need to install is Ghostscript. This can be achieved by running the relevant command as root (or via sudo).
apt-get install ghostscript
yum install ghostscript
Other distributions will likely have Ghostscript available as a package, as it is a popular piece of free software.
To combine two or more files into a single PDF, run the following command:
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined.pdf -dBATCH one.pdf two.pdf
Here is what each command line parameter does (see
man gs for full details).
-dNOPAUSE: Disables the prompt and pause at the end of each page.
-sDEVICE: Selects an output device, in this case pdfwrite.
-sOUTPUTFILE: Selects an output file.
-dBATCH: List of files to be combined, separated by spaces. The order the files appear on the command line is the order they will appear in the combined PDF.