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

New Here ,
Mar 21, 2019 Mar 21, 2019

Copy link to clipboard

Copied

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!

TOPICS
Acrobat SDK and JavaScript

Views

55

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Mar 22, 2019 Mar 22, 2019

Copy link to clipboard

Copied

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.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines