I have written a VB6 app that will perform a search on a pdf using the command line;
"acroread32_path" /A "search=search_text" "pdf_file"
This works well. However, if I want to perform another search, I have to close down Reader and repeat it again. If the document is open already, no search is performed. I have also tried using;
"acroread32_path" /A "nameddest=search_text" "pdf_file"
with no luck, the search was not successful.
I have also tried using this code suggested here http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=12996
But I get this error
Run-time error 429
"ActiveX component can't create object"
So four questions (sorry);
1. Is it possible to perform another search with the document open already using my original method?
2. Does "AcroExch.App" as referenced in the topic above, work with just the Reader installed?
3. Can I use any other method to automate a search on a pdf file?
4. What is a named destination, if it does not refer to bookmarks?
Thanks in advanced for any help (WinXP SP2, Reader v8.1)
Vas.
I use the /n switch to open another instance of the Reader. It's not what I really wanted but it works now. So the complete command line is;
"acroread32_path" /n /A "search=search_text" "pdf_file"
I think using AcroExch.App is for the full version of Acrobat, not just the reader.
I would still like somebody to answer what a named destination is though, if it does not refer to a bookmark.
Anyone?
Vas