Remove pages from PDF files on Linux

Today I needed to remove some pages from a bunch of PDF files. In search of a tool, I came across the article Manipulating PDFs with the PDF Toolkit. To cut out pages 10-25 from a PDF type:

  1. pdftk old.pdf cat 1-9 26-end output new.pdf

If you don’t have it already, you need to install the Ubuntu/Debian package pdftk first.

In related news: It’s Christmas. So merry Christmas to everyone. I will be quite busy between the years (a translation of zwischen den Jahren, an expression used in Germany to describe the time between Christmas and the first day of the new year). I will participate in a bunch of Christmas-related events today and tomorrow and will be at the 23rd Chaos Comminication Congress in Berlin from December 26. See you there!

Tags: , , ,

Shameless plug: If this post was useful to you, please consider buying yourself something from one of my Amazon stores: US store, UK store, FR store, DE store, CA store. If you're not into Amazon, why not donate something to GNOME, Mozilla or Wikipedia? Thank you!

7 Responses to “Remove pages from PDF files on Linux”

  1. GregB says:

    Thanks for the useful reminder of how to slice a pdf

  2. nqrgle says:

    Thanks – was getting random crashes with the gui utilities, pdfmod and pdfshuffler, but this did the trick in seconds.

  3. Praveen says:

    Thank you very much for the info. done in a snap…

  4. pollyrox says:

    That worked perfectly…I used it to slice the ‘Notes’ slides away from the ‘Normal’ slides on a pdf generated by OpenOffice Impress. It was FAST too!! Many thanks!!!

  5. Jan Schlüter says:

    Danke für den Tipp, Patrick! So trifft man sich wieder ;)
    Lg aus Wien

  6. Nick Manini says:

    Thanx a lot! This pdftk program works perfectly, it is basically the pdf equivalent of psselect that I use when I need to slice postscript.

  7. vince says:

    You could also use Xournal, a pdf annotation tool. Really handy.

Leave a Reply