So you'll already have the count, okay.  This would be in a list field, right?
 
// JS action in your list's "mouseUp" event
search.query( event.target.value, "ActiveDocument" );
 
If you want to do this as an index (a bunch of text across N pages) rather than 
in a list field, you'll need to create invisible (null borderColor, null 
backgroundColor, empty caption) Pushbutton fields over each word with a similar 
mouseUp event.  If you name each button for the word it covers, you can even 
use "event.target.name" for the query text and reuse the same JSAction for all 
of the fields.

--Mark Storer 
  Senior Software Engineer 
  Cardiff.com

#include <disclaimer> 
typedef std::Disclaimer<Cardiff> DisCard; 

-----Original Message-----
From: lester fajardo [mailto:[email protected]]
Sent: Thursday, October 22, 2009 8:23 AM
To: [email protected]
Subject: [iText-questions] Fire the pdf search from a link


hi, i need to show in a pdf a list and count of the words contained in the 
document, and that when clicked, it make a search of the picked word so the 
user can locate that word in the document.

e.g.

+cake (3)
+tree(2)

when clicked "cake" the acrobat reader must open the search dialog and perform 
the search for the word "cake"

Thx 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to