DonationCoder.com Forum

Main Area and Open Discussion => General Software Discussion => Topic started by: kalos on January 26, 2012, 08:01 AM

Title: delete specific page range in a bunch of pdf files
Post by: kalos on January 26, 2012, 08:01 AM
hello!

I need to delete a specific range in a series of pdf files

any way to do that easily?

thanks!
Title: Re: delete specific page range in a bunch of pdf files
Post by: skwire on January 26, 2012, 11:17 AM
You can easily do this on the commandline with the PDF Toolkit (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/) (love this software).  Example:

pdftk.exe A=test.pdf cat A1 A20-end output out.pdf
          ---------- --- ---------- ------ -------
              |       |      |         |      |
              |       |      |         |      -> Output filename.
              |       |      |         |
              |       |      |         -> "output" switch.
              |       |      |
              |       |      -> Page range to include in output.  This
              |       |         will catenate page 1 and pages 20 up
              |       |         to the end of the doc, effectively
              |       |         deleting pages 2 through 19.
              |       |
              |       -> "cat" switch.
              |
              -> Sets the "A" variable to your input PDF file
                 for use when specifying the page range.
Title: Re: delete specific page range in a bunch of pdf files
Post by: kalos on January 26, 2012, 01:58 PM
excellent thanks!