The task of removing/excluding pages from the PDF document is a easy task with tool such as PDF toolkit ( pdftk ) in our hands. Suppose that our document has 51 pages. To see number of pages of your PDF document use pdfinfo command:
1 2 3 4 5 6 7 8 9 10 11 12 13
Now suppose we want to remove page 21. To do that we use pdftk command:
The above command will output only page 1-20 and pages 22-51 and thus leaving page 21 out. Similarly the same can be achieved when removing multiple pages. In the next example we are going to remove pages 15,16,17,20.
The same principle can applied when need to extract a single page from the entire document. Let’s say we need to extract page 20. The do that we use command: