January 23, 2012

How to Merge PDF Files in Ubuntu

There are so many good web article that you would like to read and sometimes they even stretch over several web pages, but what if you are not online or like to concatenate several different article of your choosing?

One way to do it, it to use the build in print to PDF file in Ubuntu. But what if there are several article? Then you probably want to merge these PDF files. In Ubuntu that is an easy task.

First install pdftk:
$ sudo apt-get install pdftk


Then type the following in the the directory where all the pdf files are:
$ pdftk 1.pdf 2.pdf 3.pdf cat output merged.pdf


For a complete reference see http://ubuntuhowtos.com/howtos/merge_pdf_files.

No comments: