How to split pdf using pdftk on Ubuntu or Debian

If like me, you are regularly reading or working with pdf files, you will occasionally get into the situation where you need to split pdf document into different pages.

There is a swiss-army knife tool called pdftk that helps to work on pdf documents. It is feature rich and does alot more than splitting files, you can check it out at pdftk.

Installing pdftk on any Ubuntu or Debian System

$ sudo apt-get update
$ sudo apt-get install pdftk

Splitting a document into individual pages

$ pdftk document_to_split.pdf burst

The set of  files created are named sequentially like pg_0001.pdf, pg_0002.pdf, pg_0003.pdf etc.

Making a new document with selected pages from original document

$ pdftk original_file.pdf cat 1 2 3 output name_of_new_file.pdf