Re: Anyone tried text searching in Acrobat?
Re: Anyone tried text searching in Acrobat?
- Subject: Re: Anyone tried text searching in Acrobat?
- From: Shane Stanley <email@hidden>
- Date: Fri, 13 Apr 2001 08:12:01 +1000
On 13/4/01 3:56 AM +1000, Guy Parker, email@hidden, wrote:
>
I'm trying to use a function of Acrobat 4's scripting capability that allows
>
it to search a PDF for a particular text string. I believe that something
>
like this should work:
>
>
tell application "Acrobat 4.0"
>
open alias "Macintosh HD:Desktop Folder:Form.pdf"
>
find text string "UK"
>
end tell
>
>
>
However, I get the following error when the "find text string" command
>
executes but only when I try to search for more than just one character
>
(i.e. find text string "U" works!).
>
>
--> Acrobat 4.0 got an error: ng not found.
>
>
Since I need to search for a complete word this isn't helpful!
>
>
Anyone got any experience of using this or suggestions?
Have you tried using the "whole words" parameter? You might also try
specifying a target document; the dictionary suggests it's optional, but I
don't have complete faith in Acrobat's dictionary.
Just a couple more things to try...
--
Shane Stanley, email@hidden