Combine several PDF into one PDF on Linux

I've got several PDF documents that need to converted into one PDF document. There's several way to do this on Linux. First, let see how to do it the hard way :D

On common Linux installation, we can use already provided tools like pdf2ps, ps2pdf or ghostscript to combine pdf. Let say we put the pdf files in a folder named "convert". The commands below will produce combined.pdf file:
$ cd ./convert
$ for file in *.pdf; do pdf2ps $file; done;
$ cat *.ps > combined.ps
$ ps2pdf combined.ps

With ghostscript, it's even simpler. All you have to do is use this command:
$ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=combined.pdf *.pdf

Usually, the output is good enough, if not superb. But it seems there's some quirk with this method. Any italic font in the PDF somehow converted to regular one. At least that's how it goes with Times New Roman font in PDF files that I converted this noon. There's solution, though. On Ubuntu repository (and other Linux distribution repositories, I'm sure), there's a small utility tool to split/merge PDF files called pdfshuffler. It got small dependencies (~110KB), and even though it's invoked through commandline, you arrange PDF pages in graphical window/GUI. This is the easy way :)
$ pdfshuffler file_1.pdf file_2.pdf file_n.pdf

If commandline is not your cup of tea, there's some GUI tool on Linux system to edit PDF files, like pdftk or pdfsam. But since the dependencies quite big (>40MB), I'll content myself with pdfshuffler :)

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer