Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a page that's repeated hundreds of times throughout a several thousand page PDF. I need to make a change to that page, and I want the change reflected throughout the document.

I've done some similar jobs with Javascript in Acrobat before, but I'm having trouble identifying the relevant pages.

How can I automatically recognise and swap out this certain page, throughout the document?

share|improve this question
up vote 0 down vote accepted

I managed to do it by using this.getPageNumWords(page) to work out how many words were on the common page. This number just happened to be unique, so provided an easy way to work out which pages to switch out when looping over.

For further useful methods, check out the Javascript API reference.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.