topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 3:09 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: delete specific page range in a bunch of pdf files  (Read 2094 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
delete specific page range in a bunch of pdf files
« 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!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: delete specific page range in a bunch of pdf files
« Reply #1 on: January 26, 2012, 11:17 AM »
You can easily do this on the commandline with 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.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: delete specific page range in a bunch of pdf files
« Reply #2 on: January 26, 2012, 01:58 PM »
excellent thanks!