Article View: adobe.acrobat.sdk
Article #247Re: AcroExch.AVDoc.FindText()
From: Jon_Pyne
Date: Fri, 20 Mar 2009 19:40
Date: Fri, 20 Mar 2009 19:40
13 lines
1342 bytes
1342 bytes
The return value is always True (or -1), whether the text is in the document or not. I've kind of given up on that working by itself, but am trying to use the fact that it plugs the string into a search and executes it. Where I am at now is...
acrAVDoc.FindText MY_TEXT, False, True, False = Now Do
DoEvents
Loop Until Now > i + 0.00001
acrApp.MenuItemExecute "SearchSubmenu, FindAgain" = Now Do
DoEvents
Loop Until Now > i + 0.00001
acrApp.MenuItemExecute "NewBookmark"
acrPDBookmark.GetByTitle acrPDDoc, "Untitled"
acrPDBookmark.SetTitle MY_TEXT
This is working as of now, but the whole system seems incredibly unpredictable. If I tweak something, it seems to break everything. Sometimes I get the search pane on the right; sometimes I don't.
Technical Details
Message-ID:
<59b85c6e.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.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: Jon_Pyne@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.acrobat.sdk Subject: Re: AcroExch.AVDoc.FindText() Message-ID: <59b85c6e.2@webcrossing.la2eafNXanI> Date: Fri, 20 Mar 2009 12:40:01 -0700 References: <59b85c6e.-1@webcrossing.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit