2009
07.23

Every now and then one runs over a tool which makes your life just a little bit easier. Just like short keys, these tools make me happy :)

I did not know what to do when I needed to merge and delete pages from two pdf documents. However, a few Google searches later I found pdftk (pdf toolkit) and it was just what I needed. It is easily installed either through the Synaptic Package Manager or “sudo apt-get install pdftk“. I use Linux (Ubuntu) but there are versions for other operating systems available as well, including Windows.

To merge two documents you may use a simple command “pdftk 1.pdf 2.pdf cat output newfile.pdf” and to delete pages, just type “pdftk A=1.pdf cat A4-6 output newfile.pdf” (this will only include page 4-6 in the new document). Have a look at the pdftk web site for more examples.

2 comments so far

Add Your Comment
  1. Thanks for the tip! A bit more convenient than using LaTeX and includepdf for merging!

  2. LaTeX was actually my first though too but there had to be a better way. Luckily, there was :)