Skip to main content
mickb56786059
Participant
March 21, 2019
Question

Is there a way to delete pages bound by a specific phrases (using Adobe Pro)

  • March 21, 2019
  • 1 reply
  • 417 views

In my scenario, I have a multi page pdf.  There is a page that starts with a specific phrase "Page C".  I need to delete that page, and all other following pages until it reaches another specific phrase "Page D".

I'm guessing it would be some kind of javascript in the action wizard.  If so, could anyone help me find something that would work?  Thanks!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
March 22, 2019

Yes, this can be achieved using a script, but it's not a very trivial task. You would need to write a loop that iterates over all the words of all the pages looking for the "Page C" string, and then continue until you find the "Page D" string. Then you delete the pages in between.

You would also need to decide what to do if the second string is not found.