0
Javascript for searching in specific pages
New Here
,
/t5/acrobat-discussions/javascript-for-searching-in-specific-pages/td-p/9217844
Jul 08, 2017
Jul 08, 2017
Copy link to clipboard
Copied
I'm searching for a javascript that is searching for a word in pages 18 to 23 of an document. I'now ysing the javascript:
var textToSearch = app.response("Enter the search term:");
if (textToSearch!="") search.query(textToSearch, "ActiveDoc");
But that is searching the whole document.
TOPICS
PDF forms
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/acrobat-discussions/javascript-for-searching-in-specific-pages/m-p/9217845#M61115
Jul 08, 2017
Jul 08, 2017
Copy link to clipboard
Copied
Only if you use the getPageNthWord method of the document object and build your own function to search for a phrase.
This could be quit slow since it will not use any index.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-discussions/javascript-for-searching-in-specific-pages/m-p/9217846#M61116
Jul 09, 2017
Jul 09, 2017
Copy link to clipboard
Copied
Another option is to extract those pages as a new file and then search them.
This will only work in Acrobat, of course.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

