Pdftk is a tool which we can use to split or extract pages from a pdf document. To install pdfktk on debian based systems : $ sudo apt-get install pdftk.
examples:
1. Let us say we have a pdf file,temp.pdf, with 100 pages in it. We want to extranct the pages 20 to 30 and create a new pdf . We can do it using pdftk
Code: Select all
$ pdftk temp.pdf cat 20-30 output new.pdf
2. We can pick specific pages instead of a range by just passing the page numbers. To create a new pdf by extracting pages 21,25, and 28 we can use.
Code: Select all
$ pdftk temp.pdf cat 21 25 28 output new.pdf
We're not here because we are free. We're here because we are not free. There is no escaping reason. No denying purpose. Because we both know without purpose, we would not exist.
http://www.bartbania.com/