These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

search with javascript

jeanmed
Registered: Feb 21 2011
Posts: 1

Dear,
 

 
I need to search a text in a pdf file.
I have 2 text fields from who i get the values, after a cacul, need to search this value in my opened file.
  
I can not find the function or method to search the document that value.
 
The seach.query(); open's a new window. I need just tu search directly.
 
Thanks for you help
 
my PDF : http://www.allienys.com/sample/search.pdf
"test with 50 and 100 for 0.5"
  
Thanks

My Product Information:
Acrobat Pro 9.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Try this:
search.query(searchTerm, "ActiveDoc");

Of course, you will have to define searchTerm as the value of your fields before this line.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com