Article View: adobe.acrobat.sdk
Article #250Re: AcroExch.AVDoc.FindText()
From: Reinhard_Franke
Date: Fri, 20 Mar 2009 20:22
Date: Fri, 20 Mar 2009 20:22
15 lines
1187 bytes
1187 bytes
For me (AAv5) it works well.
Perhaps you have a look at this JS from my libary:
Loops through pages to find all word occurrence
//Paste this into your console, select all the text and hit ENTER on your keyboard
var wf = "Sales" //word to find
for (var i=0;i<this.numPages;i++){ for (var j=0;j<this.getPageNumWords(i);j++){ if (this.getPageNthWord({nPage:i,nWord:j}).toString() == wf){ app.alert("Found on Page: " +(i+1)) }}}
But it works realy only on one word (like "Sales",
but not: "Net Sales")
If that is already enough, we can use it with a vbs
Br, Reinhard
Technical Details
Message-ID:
<59b85c6e.4@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b85c6e.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 10177e,2f91b3743d53ea47 X-Google-Attributes: gid10177e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Reinhard_Franke@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.acrobat.sdk Subject: Re: AcroExch.AVDoc.FindText() Message-ID: <59b85c6e.4@webcrossing.la2eafNXanI> Date: Fri, 20 Mar 2009 13:22:08 -0700 References: <59b85c6e.-1@webcrossing.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit