Code: Select all
Public Function PdfSearchText( ByVal Page As Integer, ByVal Text As String, ByVal Occurrence As Integer, ByVal CaseSensitive As Boolean, ByVal WholeWords As Boolean, ByRef Left As Single, ByRef Top As Single, ByRef Width As Single, ByRef Height As Single ) As Boolean
For example, you can count the number of occurrence on a specific page calling this function until it returns false (don't forget to increment the Occurrence parameter in your loop).
Then, when know how many occurrences are available for a specific text, you can obtain the position of the n occurrence...
It's hard to explain but very easy to implement. Hope my explanation brings some lights.
To enable whole word option just set the WholeWords parameter to True. To disable the option, turn the parameter to False. There is nothing else to do and this works.
If you still have a problem with this parameter, please attach a document an explain what do you expect for your search.
Who is online
Users browsing this forum: No registered users and 1 guest