Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: Acrobat 4.0 API - Problem with highlighting

$
0
0

R.Strauss wrote:

 

 

 

***************************************************

hiliteList.Add 0, 32767

Set wordHilite = pdPage.CreateWordHilite(hiliteList)

For idx = 0 To wordHilite.GetNumText - 1

     'taking the word for searching

     word = Trim(wordHilite.GetText(idx))

     If word = wordFind Then

          Debug.Print wordToHilite.GetText(idx)    

          Exit For

     End If

Next

******************************************************* The Debug.print in this routine gives result "1234/5" with idx = 113

 

hiliteList.Add 113, 1

Set wordHilite = pdPage.CreateWordHilite(hiliteList)

Debug.Print wordToHilite.GetText(0)

***************************************************** this debug.print should give the same result of the former one becuase I try to reach the item without looping, but it's not so. Here the result is "zzzz"

Where did you set the variable wordToHilite ?


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>