-
1. Re: Get page numbers from string search
try67 Jun 19, 2010 2:59 PM (in response to DV22)Can't answer your question directly, but I can tell you that it's possible
to use getNthWord to match a phrase. You basically need to do what you did
so far (a double loop to find the first word of the phrase), and then
continue matching the following words. If you match all of them, you can a
positive match. It's complicated, but doable.
For example, I did just that in this script, which highlights all instances
of a word or a phrase in a file:
http://try67.blogspot.com/2008/11/acrobat-highlight-all-instances-of.html
Edit: Didn't see the code when I posted this... It seems you got the hang of it.
I don't know of any other way to achieve that with a script.
-
2. Re: Get page numbers from string search
DV22 Jun 19, 2010 3:17 PM (in response to try67)Thanks for confirming what I thought, had the idea minutes after posting and wrote that snip real quick. So far thats the only way I see possible without doing something more crazy (like extracting a single page, search, delete, do next page).
Thanks again!


