Help with Script to Delete page with "word" and the page before.
Hi everyone
I got a PDF generated from another software. It creates pages that i don´t want/or can't print.
I need help with a script that can search for words (going to be about 5 different words) and delete the page containing one of that words and the page before.
I found a script here but it only deletes the page that contains the word.
I´m also not sure how to add multiple words without coping the whole script and type a new word.
Using this script now
for (var p=this.numPages-1; p>=0; p--) {
for (var n=0; n<this.getPageNumWords(p); n++) {
if (this.getPageNthWord(p, n) == "WORD") {
this.deletePages(p);
}
}
}
Anyone got any good ideas to help me?
