HowTo: Split PDF File – Linux Command Line

Sometimes it is required to extract some pages from a PDF file and save them as another PDF document.

In Linux we can easily split PDF documents by pages using the command line utility called pdftk.

From this article you will learn how to extract individual pages or a range of pages from a PDF file and save them as another PDF document.

Cool Tip: Plan to send this PDF somewhere or just keep? How about to protect it with a password? This is really easy for ones who split PDF files from the command line! Read more →

First of all it is required to install the pdftk utility:

$ sudo apt-get install pdftk

Split PDF File

Extract the 5th page from the ORIG_FILE.pdf and save it to the NEW_FILE.pdf:

$ pdftk ORIG_FILE.pdf cat 5 output NEW_FILE.pdf

Extract several individual pages:

$ pdftk ORIG_FILE.pdf cat 1 4 6 output NEW_FILE.pdf

Cool Tip: Merge PDF files easily from the Linux command line! Read more →

Extract a range of pages:

$ pdftk ORIG_FILE.pdf cat 1-5 output NEW_FILE.pdf

Extract the combination of individual pages and a range of pages:

$ pdftk ORIG_FILE.pdf cat 1 5 7 10-12 output NEW_FILE.pdf

One Reply to “HowTo: Split PDF File – Linux Command Line”

  1. Спасибо!

Leave a Reply